import { Pressable, Text, StyleSheet, View } from 'react-native'; import { variants, variantTexts, innerBorders } from '../common/styles'; import type { IButtonProps } from './types'; export default function Button(props: IButtonProps) { const { children, innerBorderStyle, onPress, size = 'medium', style, textStyle, variant = 'primary', } = props; return ( {typeof children === 'string' || typeof (children as string[])?.[0] === 'string' ? ( {children} ) : ( children )} ); }