import { InvoiceItem } from '@/types/types'; import { ArrowRight, FileText, MapPin } from 'lucide-react-native'; import React from 'react'; import { Text, TouchableOpacity, View } from 'react-native'; interface InvoiceCardProps { item: InvoiceItem; onPress: (id: number) => void; } function InvoiceCard({ item, onPress }: InvoiceCardProps) { return ( onPress(item.id)} className="bg-white p-5 rounded-3xl shadow-sm border border-gray-100 flex-row justify-between items-center active:bg-gray-50" > N° {item.documentNumber} del {item.date} {item.supplier} {item.placeName} {item.totalAmount} ); } export default React.memo(InvoiceCard);