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 ; }