/** * ScoreBar — Animated horizontal bar showing score 0-1 */ interface ScoreBarProps { score: number; label?: string; color?: string; height?: number; } export default function ScoreBar({ score, label, color = '#6366f1', height = 6, }: ScoreBarProps) { const pct = Math.min(100, Math.max(0, score * 100)); return (
{label && ( {label} )}
{score.toFixed(2)}
); }