import { Stack } from '@/ui/Stack';
import { Text } from '@/ui/Text';

interface DriverStatsProps {
  rating: number;
  wins: number;
  podiums: number;
  winRate: string;
}

export function DriverStats({ rating, wins, podiums, winRate }: DriverStatsProps) {
  return (
    <Stack direction="row" align="center" gap={8} textAlign="center">
      <Stack>
        <Text size="2xl" weight="bold" color="text-primary-blue" block>{rating}</Text>
        <Text size="xs" color="text-gray-400" block>Rating</Text>
      </Stack>
      <Stack>
        <Text size="2xl" weight="bold" color="text-green-400" block>{wins}</Text>
        <Text size="xs" color="text-gray-400" block>Wins</Text>
      </Stack>
      <Stack>
        <Text size="2xl" weight="bold" color="text-warning-amber" block>{podiums}</Text>
        <Text size="xs" color="text-gray-400" block>Podiums</Text>
      </Stack>
      <Stack>
        <Text size="sm" color="text-gray-400" block>{winRate}%</Text>
        <Text size="xs" color="text-gray-500" block>Win Rate</Text>
      </Stack>
    </Stack>
  );
}
