import React from 'react'; import { Image, Pressable, Text, View } from 'react-native'; import { STATUS_COLORS } from '../constants'; import { styles } from '../styles'; function statusAccent(status) { return STATUS_COLORS[status] || '#64748b'; } export default function ItemCard({ item, onEdit, onDelete, onQuickPack, onQuickUnpack }) { const isPacked = item.status === 'packed'; const isUnpacked = item.status === 'unpacked'; return ( {item.name} {item.category || 'uncategorized'} ยท {item.status} Location: {item.placement} {item.status === 'lent-to' && !!item.lentTo ? Lent to: {item.lentTo} : null} {!!item.description ? {item.description} : null} onEdit(item)}> Edit onDelete(item.id)}> Delete Pack Unpack {item.imageUri ? : null} ); }