'use client'; import React from 'react'; import { Text } from '@/ui/Text'; import { Box } from '@/ui/Box'; interface StatItem { label: string; value: string | number; subValue?: string; color?: string; } interface DriverStatsPanelProps { stats: StatItem[]; } export function DriverStatsPanel({ stats }: DriverStatsPanelProps) { return ( {stats.map((stat, index) => ( {stat.label} {stat.value} {stat.subValue && ( {stat.subValue} )} ))} ); }