import { Inbox } from "lucide-react"; import type { Quote, Store } from "../../lib/types"; import { QuoteCard } from "./QuoteCard"; import { EmptyState } from "../../components/EmptyState"; export interface LedgerTableProps { store: Store; quotes: Quote[]; expanded: Set; onToggleExpand: (id: string) => void; onAccept: (id: string) => void; onEdit: (id: string) => void; canWrite?: boolean; } // دفتر پیشنهادها — فهرست کارت‌ها (واکنش‌گرا و بهینه برای موبایل) export function LedgerTable({ store, quotes, expanded, onToggleExpand, onAccept, onEdit, canWrite = true, }: LedgerTableProps) { if (!quotes.length) { return (
); } return (
{quotes.map((q) => ( onToggleExpand(q.id)} onAccept={() => onAccept(q.id)} onEdit={() => onEdit(q.id)} canWrite={canWrite} /> ))}
هشدار «منقضی» = قیمت پیشنهادی از تاریخ انقضا گذشته؛ برای پیش‌بینی قیمت، شمارش نمی‌شود.
); }