import { useId } from "react"; import { Button, type ButtonProps } from "./Button.js"; import { ProgressBar } from "./ProgressBar.js"; import { Icon } from "./Icon.js"; import { cn } from "./cn.js"; export interface ProgressButtonProps extends Omit { label: string; /** Presence means pending. Value is measured progress of the named phase, not elapsed time. */ progress?: { label: string; value?: number; valueText?: string }; } export function ProgressButton({ label, progress, className, disabled, icon, ...props }: ProgressButtonProps) { const statusId = useId(); return
{progress ? <> {progress.label} : null}
; } /** Decorative animation of the canonical layers glyph. The surrounding action owns live status. */ export function LayerStackIndicator() { return ; }