export interface ScheduleLaneProps { name: string; /** The cadence, written the way the machine states it: `every 8h`. */ cadence?: string; /** Tick positions along the lane, 0–1. */ marks: number[]; /** Index into `marks` that is running now, if any. */ activeIndex?: number; /** What the active tick is doing. Required whenever `activeIndex` is set. */ activeLabel?: string; className?: string; } export function ScheduleLane({ name, cadence, marks, activeIndex, activeLabel, className, }: ScheduleLaneProps) { const awake = activeIndex !== undefined; return (
{name} {cadence !== undefined && {cadence}}
); }