(v: number)
| 6 | import { useI18n } from "@/i18n"; |
| 7 | |
| 8 | function scoreColor(v: number): string { |
| 9 | if (v < 20) return "#ef4444"; |
| 10 | if (v < 40) return "#f97316"; |
| 11 | if (v < 60) return "#eab308"; |
| 12 | if (v < 80) return "#22c55e"; |
| 13 | return "#10b981"; |
| 14 | } |
| 15 | |
| 16 | function Gauge({ score }: { score: number }) { |
| 17 | const cx = 70; |
no outgoing calls
no test coverage detected