export interface RailAct { /** Stable id — the rail keys on this, never on the array index. */ id: string; label: string; } export interface ProgressRailProps { acts: RailAct[]; /** The act the reader is on. Marked `aria-current="step"`. */ currentId: string; /** Accessible name for the rail. */ label?: string; className?: string; } export function ProgressRail({ acts, currentId, label = 'Act progress', className, }: ProgressRailProps) { return (