Files
haptika/mobile/app/index.tsx
2026-09-09 10:12:49 +02:00

8 lines
385 B
TypeScript

import { Redirect } from 'expo-router';
import { useAppState } from '../src/state/app-state';
export default function Index() {
const {state, ready, syncStatus} = useAppState();
if (!ready || syncStatus === 'loading') return null;
return <Redirect href={{pathname: '/screen/[id]', params: {id: state.onboarded ? (state.variant === 'watch' ? '560-251' : '431-2') : '2-2'}}} />;
}