import * as React from 'react'; import { Pressable, Text } from 'react-native'; import { cn } from '@/lib/utils'; interface ButtonProps { children: React.ReactNode; variant?: 'default' | 'outline' | 'ghost'; size?: 'default' | 'sm' | 'lg' | 'icon'; onPress?: () => void; className?: string; } export function Button({ children, variant = 'default', size = 'default', onPress, className, }: ButtonProps) { return ( {/* DONE: Only render Text if not icon size or if children is string */} {size === 'icon' && typeof children !== 'string' ? ( children ) : ( {children} )} ); }