export function StatMeter({ iconSrc, label, value, maxValue, tone, }: { iconSrc?: string; label: string; value: number; maxValue: number; tone: 'health' | 'neutral' | 'danger'; }) { const percentage = Math.max(0, Math.min(100, (value / maxValue) * 100)); return (
{iconSrc ? : null}
{label} {Math.round(value)} /{Math.round(maxValue)}
); }