import { StyleSheet, View } from 'react-native'; import { useColors } from '../../hook'; import { useI18nContext } from '../../i18n'; import { usePaletteContext, useThemeContext } from '../../theme'; import { CmnButton } from '../../ui/Button'; import { Image } from '../../ui/Image'; import { SingleLineText } from '../../ui/Text'; /** * Placeholder component after error. You can click the retry button * @param param0 The callback function when the button is clicked. * @returns React.ReactElement */ export function ErrorPlaceholder({ onClicked }: { onClicked: () => void }) { const { tr } = useI18nContext(); const { cornerRadius } = useThemeContext(); const { input } = cornerRadius; const { colors } = usePaletteContext(); const { getColor } = useColors({ fg2: { light: colors.neutral[7], dark: colors.neutral[4], }, }); return ( {tr('_uikit_error_placeholder_tip')} ); } const styles = StyleSheet.create({ container: { position: 'absolute', width: '100%', height: '100%', backgroundColor: 'blue', justifyContent: 'center', alignItems: 'center', }, });