import { cn } from "@/lib/utils"; interface AnimatedCircularProgressBarProps { max: number; value: number; min: number; gaugePrimaryColor: string; gaugeSecondaryColor: string; className?: string; } export function AnimatedCircularProgressBar({ max = 100, min = 0, value = 0, gaugePrimaryColor, gaugeSecondaryColor, className, }: AnimatedCircularProgressBarProps) { const circumference = 2 * Math.PI * 45; const percentPx = circumference / 100; const currentPercent = Math.round(((value - min) / (max - min)) * 100); return (
{currentPercent <= 90 && currentPercent >= 0 && ( )} {currentPercent}
); }