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