Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | 10x 10x | import { Text, View } from 'react-native';
import { NativeErrorContent } from '../../ErrorPopUp.types';
import { Button } from '@sb/ui/components/atoms/Button/mobile';
import { useThemeColors } from '@sb/hooks/Utilities/useThemeColors';
export function NativeServiceUnavailable(onReloadPageClick: () => void): NativeErrorContent {
const { themedColors } = useThemeColors();
return {
title: '',
icon: null,
showFooter: false,
showCloseIcon: false,
footerButtonLabel: '',
className: 'w-full h-full bg-secondary items-center justify-center',
description: (
<View>
<Text style={{ color: themedColors.colorText_Main }} className="text-center font-normal">
Hoppla. Der Service steht zur Zeit nicht zur Verfügung. Bitte versuche es in ein paar
Minuten erneut.
</Text>
<Button
className="mt-8"
variant={'primary'}
label="Seite neu laden"
onPress={onReloadPageClick}
textStyle="uppercase text-lg py-1 font-Bold"
/>
</View>
),
};
}
|