({
mode,
checkpoints,
}: {
readonly mode: string;
readonly checkpoints: Checkpoints;
})
| 713 | }; |
| 714 | |
| 715 | const CheckpointInfo = ({ |
| 716 | mode, |
| 717 | checkpoints, |
| 718 | }: { |
| 719 | readonly mode: string; |
| 720 | readonly checkpoints: Checkpoints; |
| 721 | }) => { |
| 722 | const undoInformation = useUndoInformation(checkpoints); |
| 723 | const redoInformation = useRedoInformation(checkpoints); |
| 724 | const [available, action, checkpointId, label] = |
| 725 | mode == 'undoInformation' ? undoInformation : redoInformation; |
| 726 | return ( |
| 727 | <> |
| 728 | {JSON.stringify([available, checkpointId ?? null, label])} |
| 729 | <button onClick={action} /> |
| 730 | </> |
| 731 | ); |
| 732 | }; |
| 733 | |
| 734 | const State = ({ |
| 735 | mode, |
nothing calls this directly
no test coverage detected
searching dependent graphs…