import { ImageBackground, Pressable, View } from 'react-native'; import { Icon } from '../../atoms/Icon'; import { Text } from '../../atoms/Text'; import { cn } from '../../lib/cn'; import type { CardButtonProps } from './CardButton.types'; /** * Tarjeta-botón con imagen de fondo opcional. Usada en el menú principal. * NativeWind + Atoms; sin React Native Paper. */ export function CardButton({ label, image, icon, onPress, disabled = false, className, testID, }: CardButtonProps) { return ( {image ? ( {icon ? : null} {label} ) : ( {icon ? : null} {label} )} ); }