import { ErrorInfo } from "react" import { ScrollView, TextStyle, View, ViewStyle } from "react-native" import { Button } from "@/components/Button" import { Icon } from "@/components/Icon" import { Screen } from "@/components/Screen" import { Text } from "@/components/Text" import { useAppTheme } from "@/theme/context" import type { ThemedStyle } from "@/theme/types" import { s } from "@/utils/responsive" export interface ErrorDetailsProps { error: Error errorInfo: ErrorInfo | null onReset(): void } /** * Renders the error details screen. * @param {ErrorDetailsProps} props - The props for the `ErrorDetails` component. * @returns {JSX.Element} The rendered `ErrorDetails` component. */ export function ErrorDetails(props: ErrorDetailsProps) { const { themed } = useAppTheme() return (