import { Image, ImageSourcePropType, TouchableOpacity, View } from 'react-native'; import React, { ComponentType } from 'react'; import { useTheme } from './ThemeContext'; import Container from './Container'; import Icon from './Icon'; export type Props = { readonly actions?: JSX.Element | null; readonly imageSource: ImageSourcePropType; readonly onPressClose?: () => void; readonly subtitle?: JSX.Element | null; readonly title?: JSX.Element | null; }; const CloseButton = ({ onPressClose, style }) => { return ( ); }; const ErrorScreen: ComponentType = ({ imageSource, title = null, subtitle = null, actions = null, onPressClose, }: Props) => { const theme = useTheme(); return ( {onPressClose ? : null} {title} {subtitle} {actions} ); }; export default ErrorScreen;