import { TableCell, TableRow } from '@mui/material'; import { Item } from '../../../../data/types'; interface ItemsTableRowProps { item: Item; onClick: (item: Item) => void; } export default function ItemsTableRow({ item, onClick }: ItemsTableRowProps) { return ( onClick(item)} > {item.name} {item.description} {Number(item.price).toFixed(2)} {item.currency} {item.tag} {item.createdAt && new Date(item.createdAt).toLocaleDateString()} ); }