"use client"; import * as React from "react"; import { cn } from "@/lib/utils"; /** * One progress bar. There were six hand-rolled ones with four different * heights, while @radix-ui/react-progress sat installed and unimported. */ export function Progress({ value, tone = "accent", size = "md", className, label, }: { value: number; // 0..100 tone?: "accent" | "ok" | "warn" | "err" | "art"; size?: "sm" | "md"; className?: string; label?: string; }) { const pct = Math.max(0, Math.min(100, Number.isFinite(value) ? value : 0)); return (
); }