import { FileText, Hash, Calendar, User, Car, Building2, Shield, Tag, MessageSquare, } from "lucide-react" import { Card, CardContent, CardHeader, CardTitle, } from "@/shared/components/ui/card" import { Badge } from "@/shared/components/ui/badge" type EstimateData = { id?: number title?: string estimate_number?: string date?: string customer_id?: number vehicle_id?: number department_id?: number has_insurance?: boolean enable_digital_authorisation?: boolean insurance_type_id?: string | number | null insurer_id?: string | number | null service_writer_id?: number footer?: string | null created_at?: string updated_at?: string labels?: { id?: number title?: string color_code?: string }[] customer_remarks?: { id?: number remark?: string created_at?: string }[] // Joined fields that may come from the API customer_name?: string vehicle_name?: string department_name?: string } type EstimateGeneralInfoProps = { estimate: EstimateData } function InfoItem({ icon: Icon, label, value, }: { icon: React.ComponentType<{ className?: string }> label: string value?: string | null }) { return (
{remark.remark}
{remark.created_at && ({new Date(remark.created_at).toLocaleDateString()}
)}{estimate.footer}