import { scoreColor } from '../utils/format.js' /** * SVG radial gauge — credibility score 0-100. * Uses JetBrains Mono for score display (tabular, terminal aesthetic). * web-design-guidelines: SVG transform on wrapper with transform-box fill-box. * web-design-guidelines: prefers-reduced-motion handled in CSS. */ export default function ScoreGauge({ score = 0, size = 140 }) { const R = 50 const circumference = 2 * Math.PI * R const arcLen = (circumference * 240) / 360 // 240° sweep const filled = (Math.min(score, 100) / 100) * arcLen const color = scoreColor(score) return (
) }