export type InvoiceStatus = "draft" | "sent" | "paid" | "overdue" | "cancelled";

export type InvoiceRow = {
  id: string;
  number: string;
  customerId: string;
  customerName: string;
  issueDate: string;
  dueDate: string;
  status: InvoiceStatus;
  subtotal: number;
  vatTotal: number;
  total: number;
  notes: string;
};

export type Customer = { id: string; name: string };

export const STATUS_LABEL: Record<InvoiceStatus, string> = {
  draft: "Taslak",
  sent: "Gönderildi",
  paid: "Ödendi",
  overdue: "Gecikmiş",
  cancelled: "İptal",
};

export const STATUS_COLOR: Record<InvoiceStatus, string> = {
  draft: "bg-slate-500/15 text-slate-700 dark:text-slate-300 border-slate-500/30",
  sent: "bg-blue-500/15 text-blue-700 dark:text-blue-300 border-blue-500/30",
  paid: "bg-emerald-500/15 text-emerald-700 dark:text-emerald-300 border-emerald-500/30",
  overdue: "bg-red-500/15 text-red-700 dark:text-red-300 border-red-500/30",
  cancelled: "bg-muted text-muted-foreground border-muted-foreground/30",
};
