"use client"; import { Button } from "@/components/ui/button"; import { cn } from "@/lib/utils"; import { CATEGORY_STYLES, formatCurrency } from "@/lib/crm"; import type { ProductCategory } from "@/lib/crm"; interface QuoteLineItem { productId: string; name: string; category: ProductCategory; qty: number; unitPrice: number; lineTotal: number; photoUrl: string; } export interface QuoteResult { accountId: string; accountName: string; useCase?: string; seats?: number; lineItems: QuoteLineItem[]; subtotal: number; note: string; } export function QuoteCard({ result, status, onApprove, onAddToDeal, }: { result?: QuoteResult; status: string; onApprove?: (quote: QuoteResult) => void; onAddToDeal?: () => void; }) { if (status !== "complete") { return (
{result.note}
)} {(onApprove || onAddToDeal) && (