'use client'; import { Icon } from '@/ui/Icon'; import { Panel } from '@/ui/Panel'; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/ui/Table'; import { Text } from '@/ui/Text'; import { Box } from '@/ui/Box'; import { Group } from '@/ui/Group'; import { PositionBadge } from '@/ui/ResultRow'; import { TrendingUp, Trophy } from 'lucide-react'; import React from 'react'; interface StandingsEntry { position: number; driverName: string; points: number; wins: number; podiums: number; change?: number; } interface StandingsTableShellProps { standings: StandingsEntry[]; title?: string; } export function StandingsTableShell({ standings, title = 'Championship Standings' }: StandingsTableShellProps) { return ( {standings.length} Drivers } > Pos Driver Wins Podiums Points {standings.map((entry) => ( {entry.driverName} {entry.change !== undefined && entry.change !== 0 && ( 0 ? 'success' : 'critical'} style={{ transform: entry.change < 0 ? 'rotate(180deg)' : undefined }} /> 0 ? 'success' : 'critical'}> {Math.abs(entry.change)} )} 0 ? 'high' : 'low'}>{entry.wins} 0 ? 'high' : 'low'}>{entry.podiums} {entry.points} ))}
); }