import {useCallback} from 'react' import {View} from 'react-native' import {Trans, useLingui} from '@lingui/react/macro' import {StackActions, useNavigation} from '@react-navigation/native' import {type NavigationProp} from '#/lib/routes/types' import {atoms as a, useTheme} from '#/alf' import {Button, ButtonText} from '#/components/Button' import * as Layout from '#/components/Layout' import {Text} from '#/components/Typography' export const NotFoundScreen = () => { const t = useTheme() const {t: l} = useLingui() const navigation = useNavigation() const canGoBack = navigation.canGoBack() const onPressHome = useCallback(() => { if (canGoBack) { navigation.goBack() } else { navigation.navigate('HomeTab') navigation.dispatch(StackActions.popToTop()) } }, [navigation, canGoBack]) return ( Page not found Page not found We're sorry! We can't find the page you were looking for. ) }