import { routes } from '@/lib/routing/RouteConfig'; import { ProtestListItem } from './ProtestListItem'; interface Protest { id: string; status: string; protestingDriverId: string; accusedDriverId: string; filedAt: string; incident: { lap: number; description: string; }; proofVideoUrl?: string; decisionNotes?: string; } interface Driver { id: string; name: string; } interface ProtestCardProps { protest: Protest; protester?: Driver; accused?: Driver; isAdmin: boolean; onReview: (id: string) => void; formatDate: (date: string) => string; } export function ProtestCard({ protest, protester, accused, isAdmin, onReview, formatDate }: ProtestCardProps) { const daysSinceFiled = Math.floor( (Date.now() - new Date(protest.filedAt).getTime()) / (1000 * 60 * 60 * 24) ); const isUrgent = daysSinceFiled > 2 && protest.status === 'pending'; return ( onReview(protest.id)} /> ); }