import '../global.css';
import { AuthProvider } from '@/utils/authContext';
import { Stack } from 'expo-router';
import { AlertProvider } from '@/components/AlertComponent';
import { NetworkProvider } from '@/utils/networkProvider';

export default function AppLayout() {
    return (
        <NetworkProvider>
            <AuthProvider>
                <AlertProvider>
                    <Stack screenOptions={{ headerShown: false }}>
                        <Stack.Screen name="(protected)" />
                        <Stack.Screen name="login" />
                    </Stack>
                </AlertProvider>
            </AuthProvider>
        </NetworkProvider>
    );
}