import { Redirect, Tabs } from 'expo-router'; import { Home, Clock, Zap, CalendarIcon, Building } from 'lucide-react-native'; import { useContext } from 'react'; import { AuthContext } from '@/utils/authContext'; import { useSafeAreaInsets } from "react-native-safe-area-context"; export default function ProtectedLayout() { const authState = useContext(AuthContext); const insets = useSafeAreaInsets(); if (!authState.isReady) { return null; } if (!authState.isAuthenticated) { return ; } return ( , }} /> , }} /> , }} /> , }} /> {/* // TODO: Probably needs to be restricted to admin */} , }} /> {/* TODO: Should be removed - move tabs inside (tabs) and refactor _layout */} ); }