({
mode,
checkpoints,
}: {
readonly mode: string;
readonly checkpoints: Checkpoints;
})
| 640 | }; |
| 641 | |
| 642 | const Callback = ({ |
| 643 | mode, |
| 644 | checkpoints, |
| 645 | }: { |
| 646 | readonly mode: string; |
| 647 | readonly checkpoints: Checkpoints; |
| 648 | }) => { |
| 649 | const goBackward = useGoBackwardCallback(checkpoints); |
| 650 | const goForward = useGoForwardCallback(checkpoints); |
| 651 | return (() => { |
| 652 | const button = document.createElement('button'); |
| 653 | button.textContent = 'Go'; |
| 654 | button.addEventListener( |
| 655 | 'click', |
| 656 | mode == 'goBackward' ? goBackward : goForward, |
| 657 | ); |
| 658 | return button; |
| 659 | }) as unknown as JSXElement; |
| 660 | }; |
| 661 | |
| 662 | const CheckpointInfo = ({ |
| 663 | mode, |
nothing calls this directly
no test coverage detected
searching dependent graphs…