import { AlertTriangle, Car, KeySquare } from 'lucide-react-native'; import React from 'react'; import { Text, View, TouchableOpacity } from 'react-native'; import { MachineAttendanceItem } from '@/types/types'; interface MachineCardProps { item: MachineAttendanceItem; onExitPress: (item: MachineAttendanceItem) => void; } export default function MachineCard({ item, onExitPress }: MachineCardProps) { return ( {item.name} {item.description} {item.date} Entrata: {item.in} {item.out ? ( Uscita: {item.out} ) : ( onExitPress(item)} className="bg-red-50 px-4 py-2 rounded-full border border-red-200 flex-row items-center shadow-sm active:bg-red-100" > Registra Uscita )} ); }