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