One scheduled task: what it is, when it runs next, and how the last run went.
A paused schedule stays visible and says "Paused". Hiding it would leave a task nobody remembers to turn back on, and the last run's state is what tells somebody whether the pause was deliberate.
The switch's label names the task, so a page of schedules does not present a column of switches called "on".
import { Schedule } from '@redrob-labs/ui';
| Prop | Type | Notes |
|---|---|---|
name |
React.ReactNode |
|
cadence |
React.ReactNode |
How often, in words: "Every weekday". |
nextRun |
React.ReactNode |
|
lastRun |
ScheduleLastRun |
|
enabled |
boolean |
false reads as Paused rather than hiding the row. |
switchLabel |
string |
|
className |
string |
|
onToggle |
(event: React.ChangeEvent<HTMLInputElement>) => void |
Omit it and the schedule cannot be paused from here. |