import { Redirect, Stack } from 'expo-router';
import React from 'react';
import { ActivityIndicator, View } from 'react-native';
import { useSession } from '@/features/auth/hooks';
export default function MainLayout() {
const { status } = useSession();
if (status === 'loading') {
return (
);
}
if (status === 'unauthenticated') {
return ;
}
return ;
}