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; } // دفتر پیشنهادها — فهرست کارت‌ها (هر پیشنهاد یک کارت خوانا) export function LedgerTable({ store, quotes, expanded, onToggleExpand, onAccept, onEdit, }: LedgerTableProps) { if (!quotes.length) { return (
); } return (
{quotes.map((q) => ( onToggleExpand(q.id)} onAccept={() => onAccept(q.id)} onEdit={() => onEdit(q.id)} /> ))}
هشدار «منقضی» = قیمت پیشنهادی از تاریخ انقضا گذشته؛ برای پیش‌بینی قیمت، شمارش نمی‌شود.
); }