'use client'; interface CircularProgressProps { value: number; max: number; label: string; color: string; size?: number; } export function CircularProgress({ value, max, label, color, size = 80 }: CircularProgressProps) { const percentage = Math.min((value / max) * 100, 100); const strokeWidth = 6; const radius = (size - strokeWidth) / 2; const circumference = radius * 2 * Math.PI; const strokeDashoffset = circumference - (percentage / 100) * circumference; return (
{percentage.toFixed(0)}%
{label}
); }