import {View} from 'react-native' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {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 {Text} from '#/components/Typography' export function ErrorScreen({error}: {error: React.ReactNode}) { const t = useTheme() const navigation = useNavigation() const {_} = useLingui() const onPressBack = () => { if (navigation.canGoBack()) { navigation.goBack() } else { navigation.navigate('Home') } } return ( Could not load list {error} ) }