import { Redirect, Tabs } from 'expo-router'; import { HapticTab } from '@/components/haptic-tab'; import { IconSymbol } from '@/components/ui/icon-symbol'; import { Colors } from '@/constants/theme'; import { useColorScheme } from '@/hooks/use-color-scheme'; import { useAuth } from '@/src/providers/auth-provider'; export default function TabLayout() { const colorScheme = useColorScheme(); const { isBootstrapping, token, requiresTenantSelection } = useAuth(); if (isBootstrapping) { return null; } if (!token) { return ; } if (requiresTenantSelection) { return ; } return ( , }} /> , }} /> , }} /> , }} /> , }} /> ); }