'use client'; import React from 'react'; import { Box } from '@/ui/Box'; import { Text } from '@/ui/Text'; 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} ))} ); }