'use client'; import React from 'react'; import { Card } from '@/ui/Card'; import { Box } from '@/ui/Box'; import { Stack } from '@/ui/Stack'; import { Text } from '@/ui/Text'; import { Grid } from '@/ui/Grid'; import { Surface } from '@/ui/Surface'; interface LeagueChampionshipStatsProps { standings: Array<{ driverId: string; position: number; totalPoints: number; racesFinished: number; }>; drivers: Array<{ id: string; name: string; }>; } export function LeagueChampionshipStats({ standings, drivers }: LeagueChampionshipStatsProps) { if (standings.length === 0) return null; const leader = standings[0]; const totalRaces = Math.max(...standings.map(s => s.racesFinished), 0); return ( 🏆 Championship Leader {drivers.find(d => d.id === leader?.driverId)?.name || 'N/A'} {leader?.totalPoints || 0} points 🏁 Races Completed {totalRaces} Season in progress 👥 Active Drivers {standings.length} Competing for points ); }