import React from 'react'; import Card from '@/components/ui/Card'; 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