import { scoreColor } from "../utils/colors"; interface ScoreBarProps { score: number; max?: number; } export default function ScoreBar({ score, max = 1 }: ScoreBarProps) { const pct = Math.min(100, Math.max(0, (score / max) * 100)); const color = scoreColor(score); return (
{score.toFixed(4)}
); }