'use client' import React from 'react' interface ProgressRingProps { progress: number // 0-100 size?: number strokeWidth?: number label: string value: string color?: string isDark?: boolean } export function ProgressRing({ progress, size = 80, strokeWidth = 6, label, value, color = '#60a5fa', isDark = true, }: ProgressRingProps) { const radius = (size - strokeWidth) / 2 const circumference = radius * 2 * Math.PI const offset = circumference - (Math.min(progress, 100) / 100) * circumference return (
{/* Background circle */} {/* Progress circle */} {/* Center text */}
{value}
{label}
) }