import { Pressable, View } from 'react-native'; import { IconButton } from '../../atoms/IconButton'; import { Text } from '../../atoms/Text'; import { cn } from '../../lib/cn'; import type { ObservationCardProps } from './ObservationCard.types'; export function ObservationCard({ title, description, date, badge, onPress, onEdit, onDelete, className, }: ObservationCardProps) { const Container = onPress ? Pressable : View; return ( {title} {badge} {description ? ( {description} ) : null} {date ? ( {date} ) : ( )} {onEdit ? ( ) : null} {onDelete ? ( ) : null} ); }