type CircularProgressProps = { className?: string size: number progress: number trackWidth: number indicatorWidth: number } const CircularProgress = ({ className, indicatorWidth, progress, size, trackWidth, }: CircularProgressProps) => { const center = size / 2, radius = center - (trackWidth > indicatorWidth ? trackWidth : indicatorWidth), dashArray = 2 * Math.PI * radius, dashOffset = dashArray * ((100 - progress) / 100) return ( <>
) } export default CircularProgress