import React from 'react'; interface FinishDistributionProps { wins: number; podiums: number; topTen: number; total: number; } export default function FinishDistributionChart({ wins, podiums, topTen, total }: FinishDistributionProps) { const outsideTopTen = total - topTen; const podiumsNotWins = podiums - wins; const topTenNotPodium = topTen - podiums; const segments = [ { label: 'Wins', value: wins, color: 'bg-performance-green', textColor: 'text-performance-green' }, { label: 'Podiums', value: podiumsNotWins, color: 'bg-warning-amber', textColor: 'text-warning-amber' }, { label: 'Top 10', value: topTenNotPodium, color: 'bg-primary-blue', textColor: 'text-primary-blue' }, { label: 'Other', value: outsideTopTen, color: 'bg-gray-600', textColor: 'text-gray-400' }, ].filter(s => s.value > 0); return (