// Adapted from shadcn/ui (MIT). See THIRD_PARTY_NOTICES.md. "use client"; import type { ComponentProps } from "react"; import { Progress as Primitive } from "./_ynrlib/radix-ui.js"; export function Progress({ className = "", value, max = 100, ...props }: ComponentProps) { const limit = Number.isFinite(max) && max > 0 ? max : 100; const current = typeof value === "number" && Number.isFinite(value) ? Math.min(limit, Math.max(0, value)) : null; return ( ); }