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';
export default function ProtectedLayout() {
const authState = useContext(AuthContext);
if (!authState.isReady) {
return null;
}
if (!authState.isAuthenticated) {
return ;
}
// TODO: Aggiungere padding per i dispositivi con notch/bottom bar
return (
,
}}
/>
,
}}
/>
,
}}
/>
,
}}
/>
{/* // TODO: Rimuovere all'utente e mostrare solo a admin */}
,
}}
/>
{/* TODO: Dovrebbe essere rimosso, va rivisto layout */}
);
}