import { cn } from "@/lib/utils" export function RadialGauge({ value, label, detail }: { value: number; label: string; detail?: string }) { const radius = 24 const circ = 2 * Math.PI * radius const offset = circ - (Math.min(value, 100) / 100) * circ const strokeColor = value > 90 ? "stroke-red-500" : value > 75 ? "stroke-amber-500" : "stroke-primary" return (
{Math.round(value)}%
{label} {detail && {detail}}
) }