import React from 'react'; /** * Signature HyperFlow 4.0 SVG animated confidence arc gauge */ export default function ConfidenceArc({ confidence = 0.85, label = "Confidence", color = "#00D4AA", size = 110 }) { const normalizedConfidence = Math.min(1.0, Math.max(0.0, confidence)); const radius = 38; const circumference = 2 * Math.PI * radius; const dashOffset = circumference * (1 - normalizedConfidence); return (
{/* Outer subtle glow track */} {/* Animated Confidence Arc */} {/* Center Percentage */} {Math.round(normalizedConfidence * 100)}% {/* Label */} {label}
); }