"use client"; import { withAlpha } from "./palette"; /** * ProgressBar — vertical or horizontal bar showing a percentage fill. * Used for compact status widgets, e.g. "Approval Pending: 62%". */ export function ProgressBar({ label, value, total, color, unit = "", }: { label: string; value: number; total: number; color: string; unit?: string; }) { const pct = total === 0 ? 0 : Math.round((value / total) * 100); return (