import {type StyleProp, View, type ViewStyle} from 'react-native' import {useLingui} from '@lingui/react/macro' import {atoms as a, useGutters, useTheme, utils} from '#/alf' import {Button} from '#/components/Button' import {ArrowRotateClockwise_Stroke2_Corner0_Rounded as ArrowRotateIcon} from '#/components/icons/ArrowRotate' import {Warning_Stroke2_Corner0_Rounded as WarningIcon} from '#/components/icons/Warning' import * as Layout from '#/components/Layout' import {Text} from '#/components/Typography' export function ErrorMessage({ message, numberOfLines, style, onPressTryAgain, }: { message: string numberOfLines?: number style?: StyleProp onPressTryAgain?: () => void }) { const {t: l} = useLingui() const t = useTheme() const gutter = useGutters(['base']) return ( {message} {onPressTryAgain && ( )} ) }