import { SignedIn, SignedOut, useUser } from '@clerk/clerk-expo'
import { Redirect } from 'expo-router'
import { View } from 'react-native'

export default function Page() {
    const { user } = useUser()

    return (
        <View>
            <SignedIn>
                <Redirect href={'/home'} />
            </SignedIn>
            <SignedOut>
                <Redirect href={'/(auth)/sign-in'} />
            </SignedOut>
        </View>
    )
}
