wip
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
'use client';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
interface CircularProgressProps {
|
||||
@@ -8,7 +10,7 @@ interface CircularProgressProps {
|
||||
size?: number;
|
||||
}
|
||||
|
||||
export default function CircularProgress({ value, max, label, color, size = 80 }: CircularProgressProps) {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user