import clsx from 'clsx'; import type { ReactNode } from 'react'; import './style.scss'; const CircularProgressBar = ( { currentStep, numberOfSteps, size, enableDesktopScaling = false, strokeColor, strokeWidth = 4, showProgressText = true, customText, variant, }: { currentStep: number | null; numberOfSteps: number | null; size: number; enableDesktopScaling?: boolean; strokeColor?: string; strokeWidth?: number; showProgressText?: boolean; customText?: ReactNode; variant?: 'success'; } ) => { const SIZE = size; const RADIUS = SIZE / 2 - strokeWidth / 2; const FULL_ARC = 2 * Math.PI * RADIUS; if ( currentStep === null || ! numberOfSteps ) { return null; } return (