import React from 'react'; const PRIORITY_CONFIG = { 5: { color: '#ef4444', label: 'CRITICAL' }, 4: { color: '#f59e0b', label: 'HIGH' }, 3: { color: '#eab308', label: 'MEDIUM' }, 2: { color: '#22c55e', label: 'LOW' }, 1: { color: '#94a3b8', label: 'MINIMAL' }, }; function ScoreGauge({ score }) { const pct = Math.max(0, Math.min(1, score)); const color = pct >= 0.75 ? '#22c55e' : pct >= 0.5 ? '#f59e0b' : pct >= 0.25 ? '#f97316' : '#ef4444'; const size = 100; const stroke = 8; const r = (size - stroke * 2) / 2; const circ = 2 * Math.PI * r; const dash = circ * pct; return (