'use client'; import React from 'react'; import { Box } from '@/ui/Box'; import { Stack } from '@/ui/Stack'; import { Text } from '@/ui/Text'; import { Surface } from '@/ui/Surface'; import { Icon } from '@/ui/Icon'; import { Clock, ShieldAlert, MessageSquare } from 'lucide-react'; import { Button } from '@/ui/Button'; interface Protest { id: string; raceName: string; protestingDriver: string; accusedDriver: string; description: string; submittedAt: string; status: 'pending' | 'under_review' | 'resolved' | 'rejected'; } interface StewardingQueuePanelProps { protests: Protest[]; onReview: (id: string) => void; } export function StewardingQueuePanel({ protests, onReview }: StewardingQueuePanelProps) { return ( STEWARDING QUEUE {protests.filter(p => p.status === 'pending').length} Pending {protests.length === 0 ? ( No active protests in the queue. ) : ( protests.map((protest) => ( {protest.raceName.toUpperCase()} {new Date(protest.submittedAt).toLocaleString()} {protest.protestingDriver} VS {protest.accusedDriver} “{protest.description}” )) )} ); } function StatusIndicator({ status }: { status: Protest['status'] }) { const colors = { pending: 'bg-warning-amber', under_review: 'bg-primary-blue', resolved: 'bg-performance-green', rejected: 'bg-gray-500', }; return ( ); }