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 35 36 37 38 39 40 41 42 43 | 10x | import { Text, View } from 'react-native';
import { NativeErrorContent } from '../../ErrorPopUp.types';
import { Button } from '@sb/ui/components/atoms/Button/mobile';
import { parseFormattedNativeContent } from '@sb/libs/utils.native';
import { footerButtonClasses, footerButtonTextStyle, paragraphClasses } from './utils';
export function NativeActiveElsewhere(
onClose: () => void,
onLugasClick: () => void
): NativeErrorContent {
return {
title: 'Auszeit',
description: (
<View>
<Text className={paragraphClasses}>
{parseFormattedNativeContent(
'Solange du bei einem anderen Wettanbieter aktiv bist, <semibold>erlaubt LUGAS keine Wettabgabe</semibold> auf unserer Seite. Log dich einfach dort aus und nach einer <semibold>Wartezeit von 5 Minuten</semibold>, kannst du wieder bei uns wetten.',
'font-semibold',
'semibold'
)}
</Text>
<View className="mt-2 flex flex-col gap-3">
<Button
variant="secondary"
label="Schliessen"
onPress={onClose}
className={footerButtonClasses}
textStyle={footerButtonTextStyle}
/>
<Button
label="Wer oder was ist LUGAS?"
variant="ghostDark"
onPress={onLugasClick}
className={footerButtonClasses}
textStyle={footerButtonTextStyle}
/>
</View>
</View>
),
footerButtonLabel: '',
};
}
|