import { Redirect, Tabs } from 'expo-router'; import { Home, Clock, FileText, Zap, CalendarIcon } from 'lucide-react-native'; import { useContext } from 'react'; import { AuthContext } from '@/utils/authContext'; export default function ProtectedLayout() { const authState = useContext(AuthContext); if (!authState.isReady) { return null; } if (!authState.isAuthenticated) { return ; } return ( , }} /> , }} /> , }} /> , }} /> {/* // TODO: Rimuovere all'utente e mostrare solo a admin */} , }} /> {/* TODO: Dovrebbe essere rimosso, va rivisto layout */} ); }