'use client'; import { Button } from '@/ui/Button'; import { Heading } from '@/ui/Heading'; import { Stack } from '@/ui/primitives/Stack'; import { Text } from '@/ui/Text'; import { Trophy, Users } from 'lucide-react'; interface DriverStat { label: string; value: string | number; color?: string; animate?: boolean; } interface DriversDirectoryHeaderProps { totalDrivers: number; activeDrivers: number; totalWins: number; totalRaces: number; onViewLeaderboard: () => void; } export function DriversDirectoryHeader({ totalDrivers, activeDrivers, totalWins, totalRaces, onViewLeaderboard, }: DriversDirectoryHeaderProps) { const stats: DriverStat[] = [ { label: 'drivers', value: totalDrivers, color: 'text-primary-blue' }, { label: 'active', value: activeDrivers, color: 'text-performance-green', animate: true }, { label: 'total wins', value: totalWins.toLocaleString(), color: 'text-warning-amber' }, { label: 'races', value: totalRaces.toLocaleString(), color: 'text-neon-aqua' }, ]; return ( {/* Background Accents */} Drivers Meet the racers who make every lap count. From rookies to champions, track their journey and see who's dominating the grid. {stats.map((stat, index) => ( {stat.value} {stat.label} ))} See full driver rankings ); }