import React from 'react'; export function ProgressBar({ percent = 0, color, className = '' }) { const clamped = Math.max(0, Math.min(100, Number(percent) || 0)); const fillStyle = { width: `${clamped}%`, ...(color && { background: color }) }; return (
); } export default ProgressBar;