import { CheckCircle2, HardHat, Wrench, ToolCase } from 'lucide-react'; import { ProtectedVideoPlayer } from '@/components/media/ProtectedVideoPlayer'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import type { TicketDetail } from '@/types'; import { formatDate } from '@/utils/date'; import { RepairProofGallery } from './RepairProofGallery'; function SubmittedBanner({ submittedAt, submitterName, }: { submittedAt: string; submitterName: string; }) { return (

Repair Submitted

{formatDate(submittedAt)} by {submitterName}

); } function ImageGallery({ imageUrls, hasVideo, }: { imageUrls: string[]; hasVideo: boolean; }) { if (imageUrls.length === 0) { return hasVideo ? null : (
No media attached
); } return ; } function Notes({ notes }: { notes: string | null | undefined }) { return (

Repair Notes

{notes?.trim() || 'No repair notes provided.'}

); } export function RepairProofSummary({ ticket }: { ticket: TicketDetail }) { const repair = ticket.repair; if (!repair?.submitted_at) { return null; } const submitterName = ticket.worker?.name?.trim() || 'Assigned worker'; return ( Repair Proof ); }