import type { PropsWithChildren } from 'react'; import type { SafeAreaViewProps } from 'react-native-safe-area-context'; import { StatusBar } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; import { useTheme } from '@/theme'; import { DefaultError } from '@/components/molecules'; import { ErrorBoundary } from '@/components/organisms'; type Properties = PropsWithChildren< { readonly isError?: boolean; readonly onResetError?: () => void; } & Omit >; function SafeScreen({ children = undefined, isError = false, onResetError = undefined, style, ...props }: Properties) { const { layout, navigationTheme, variant } = useTheme(); return ( {isError ? : children} ); } export default SafeScreen;