'use client' interface ScoreGaugeProps { score: number | null label: string size?: number } const RADIUS = 44 const CIRCUMFERENCE = 2 * Math.PI * RADIUS function getColor(score: number): string { if (score >= 90) return '#0cce6b' if (score >= 50) return '#ffa400' return '#ff4e42' } export default function ScoreGauge({ score, label, size = 120 }: ScoreGaugeProps) { const hasScore = score !== null && score !== undefined const displayScore = hasScore ? Math.round(score) : null const offset = hasScore ? CIRCUMFERENCE * (1 - score / 100) : CIRCUMFERENCE const color = hasScore ? getColor(score) : '#6b7280' const fontSize = size >= 160 ? 'text-4xl' : 'text-2xl' return (