import { applicationName } from "expo-application" import * as React from "react" import { useTranslation } from "react-i18next" import { Pressable, View } from "react-native" import { Text } from "@/src/components/ui/typography/Text" interface GlobalErrorScreenProps { error?: Error resetError?: () => void } export const GlobalErrorScreen: React.FC = ({ error, resetError }) => { const { t } = useTranslation("common") return ( 😕 {t("error_screen.crashed", { appName: applicationName ?? "App" })} {error?.message || t("error_screen.unexpected")} {resetError && ( {t("retry")} )} ) }