'use client'; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/ui/Table'; import { Text } from '@/ui/Text'; import { Stack } from '@/ui/Stack'; interface StandingEntry { position: number; driverName: string; teamName?: string; points: number; wins: number; podiums: number; races: number; avgFinish: number | null; gap: string; } interface LeagueStandingsTableProps { standings: StandingEntry[]; } export function LeagueStandingsTable({ standings }: LeagueStandingsTableProps) { return ( Pos Driver Team Races Avg Points Gap {standings.map((entry) => ( {entry.position} {entry.driverName} {entry.teamName || '—'} {entry.races} {entry.avgFinish?.toFixed(1) || '—'} {entry.points} {entry.gap} ))}
); }