import { StyleSheet, Text, TouchableOpacity, type StyleProp, type TextStyle, type ViewStyle, } from 'react-native'; import React from 'react'; type ButtonProps = { onPress?: () => void; label?: string | React.ReactNode; color?: string; buttonStyle?: StyleProp; buttonTextStyle?: StyleProp; }; export const Button = (props: ButtonProps) => { return typeof props.label === 'string' ? ( {props.label} ) : ( props.label ); }; export const SkipButton = ( props: ButtonProps & { position?: 'top-left' | 'top-right'; } ) => { const buttonStyle = { top: 20, left: props.position === 'top-left' ? 30 : undefined, right: props.position === 'top-right' ? 30 : undefined, }; return (