import { ClipboardList, Calendar, Hash, Building2, Truck, FileText, Package, DollarSign, } from "lucide-react" import { Card, CardContent, CardHeader, CardTitle, } from "@/shared/components/ui/card" import { Badge } from "@/shared/components/ui/badge" import { Separator } from "@/shared/components/ui/separator" import { Table, TableHeader, TableBody, TableHead, TableRow, TableCell, } from "@/shared/components/ui/table" type PurchaseOrderPart = { id?: number purchase_order_id?: number part_id?: number quantity?: number rate?: string description?: string created_at?: string updated_at?: string part?: { id?: number title?: string } } type PurchaseOrderData = { id?: number job_card_id?: number vendor_id?: number vendor_name?: string job_card_name?: string department_name?: string title?: string order_number?: string order_date?: string delivery_date?: string department_id?: number notes?: string terms_and_conditions?: string created_at?: string updated_at?: string parts?: PurchaseOrderPart[] } type PurchaseOrderGeneralInfoProps = { purchaseOrder: PurchaseOrderData } function InfoItem({ icon: Icon, label, value, }: { icon: React.ComponentType<{ className?: string }> label: string value?: string | null }) { return (
{purchaseOrder.notes}
{purchaseOrder.terms_and_conditions}
No parts added to this purchase order.
)}