import { Divider, Heading, HStack, Text, VStack } from 'native-base'; import { useTranslation } from 'react-i18next'; import { colorScheme } from '@/theme/color'; import { ErrorScreenProps } from './ErrorScreen.type'; /** * ErrorScreen component. * * @returns The Error screen component. */ function ErrorScreen({ code }: ErrorScreenProps) { const { t } = useTranslation(); return ( {t('screen:shared.error.title')}! {t('label:screen.shared.error.code')}: {code} {t('label:screen.shared.error.message')}: {t(`error:${code}`, { defaultValue: t('error:unknown') as unknown })} ); } export default ErrorScreen;