2026-03-24 14:21:31 +08:00
|
|
|
import { Redirect } from 'expo-router';
|
|
|
|
|
|
|
|
|
|
import { useAuthStore } from '../src/stores';
|
|
|
|
|
|
|
|
|
|
export default function Index() {
|
|
|
|
|
const isAuthenticated = useAuthStore((s) => s.isAuthenticated);
|
|
|
|
|
if (isAuthenticated) {
|
|
|
|
|
return <Redirect href="/home" />;
|
|
|
|
|
}
|
2026-04-01 00:50:38 +08:00
|
|
|
return <Redirect href="/welcome" />;
|
2026-03-24 14:21:31 +08:00
|
|
|
}
|