// Bottom tab bar for the standalone app:
// backpack → your cards (gallery)
// money bag → collectible cards
// robot → work-agent cards
// cog → settings
import { MaterialCommunityIcons } from "@expo/vector-icons";
import { Redirect, Tabs } from "expo-router";
import { StyleSheet } from "react-native";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { useProfileStore } from "../../src/stores/profileStore";
type IconName = keyof typeof MaterialCommunityIcons.glyphMap;
function tabIcon(name: IconName) {
return ({ color, size }: { color: string; size: number }) => (
);
}
export default function TabsLayout() {
const insets = useSafeAreaInsets();
const hydrated = useProfileStore((s) => s.hydrated);
const onboarded = useProfileStore((s) => s.onboarded);
// Wait for MMKV to rehydrate before deciding, then send first-run users to
// onboarding (avoids a flash of the tabs).
if (!hydrated) return null;
if (!onboarded) return ;
return (
);
}