import React from 'react' import { StyleSheet, Text } from 'react-native' import { SafeAreaView } from 'react-native-safe-area-context' import TextButton from 'src/components/TextButton' import { typeScale } from 'src/styles/fonts' import { Spacing } from 'src/styles/styles' interface Props { title: string testID: string description: string onPress(): void buttonLabel: string onPressSecondary?(): void secondaryButtonLabel?: string | null } function AccountErrorScreen({ title, testID, description, onPress, buttonLabel, secondaryButtonLabel, onPressSecondary, }: Props) { return ( {title} {description} {buttonLabel} {!!secondaryButtonLabel && onPressSecondary && ( {secondaryButtonLabel} )} ) } const styles = StyleSheet.create({ content: { flex: 1, marginHorizontal: Spacing.Thick24, justifyContent: 'center', alignItems: 'center', }, title: { ...typeScale.titleSmall, textAlign: 'center', paddingBottom: Spacing.Regular16, paddingTop: Spacing.Regular16, }, body: { ...typeScale.bodyMedium, textAlign: 'center', paddingBottom: Spacing.Thick24, }, secondaryButton: { paddingTop: Spacing.Thick24, }, }) export default AccountErrorScreen