export default function PwaSprintProgress({ value = 0 }) {
  const progress = Math.max(0, Math.min(100, Number(value) || 0));

  return (
    <div className="pwa-sprint-progress">
      <div>
        <span>پیشرفت اسپرینت</span>
        <strong>{progress.toLocaleString('fa-IR')}٪</strong>
      </div>
      <div className="pwa-progress-bar">
        <span style={{ width: `${progress}%` }} />
      </div>
    </div>
  );
}
