Files
videogen/client/src/app/(auth)/_layout.tsx
2026-08-15 13:43:52 +02:00

21 lines
489 B
TypeScript

import { Redirect, Stack } from 'expo-router';
import { useSession } from '@/lib/session';
import { colors } from '@/theme/tokens';
export default function AuthLayout() {
const { laedt, konto } = useSession();
if (laedt) return null; // Splash bleibt stehen, bis die Session geklärt ist
if (konto) return <Redirect href="/" />;
return (
<Stack
screenOptions={{
headerShown: false,
contentStyle: { backgroundColor: colors.bg },
}}
/>
);
}