Files
featheroom/app/+not-found.tsx
2024-10-31 23:43:20 +01:00

23 lines
586 B
TypeScript

import { Link, Stack } from 'expo-router'
import React from 'react'
import { Surface, Text } from 'react-native-paper'
import Locales from '@/lib/locales'
import { styles } from '@/lib/ui'
const NotFound = () => (
<Surface style={styles.screen}>
<Stack.Screen options={{ title: Locales.t('titleNotFound') }} />
<Text variant="displayLarge">{Locales.t('titleNotFound')}</Text>
<Text variant="bodyLarge">{Locales.t('screen404')}</Text>
<Link href="/">
<Text variant="bodyLarge">{Locales.t('goHome')}</Text>
</Link>
</Surface>
)
export default NotFound