export default (props)=>{ function getProgressCircleValues(percentage, radius = 45) { if (percentage < 0 || percentage > 100) { throw new Error('Percentage must be between 0 and 100'); } // Calculate the circumference of the circle const circumference = 2 * Math.PI * radius; // Calculate stroke-dasharray and stroke-dashoffset const strokeDasharray = circumference; const strokeDashoffset = circumference - (percentage / 100 * circumference); return { strokeDasharray: strokeDasharray.toFixed(2), strokeDashoffset: strokeDashoffset.toFixed(2) }; } let v = getProgressCircleValues(props.percent) return {props.percent+"%"} }