( checkpointsOrCheckpointsId?: MaybeCheckpointsOrCheckpointsId, )
| 1885 | }; |
| 1886 | |
| 1887 | export const useRedoInformation = ( |
| 1888 | checkpointsOrCheckpointsId?: MaybeCheckpointsOrCheckpointsId, |
| 1889 | ): UndoOrRedoInformation => { |
| 1890 | const checkpoints = useCheckpointsOrCheckpointsById( |
| 1891 | checkpointsOrCheckpointsId, |
| 1892 | ); |
| 1893 | const [, , [forwardId]] = getThing(useCheckpointIds(checkpoints)); |
| 1894 | return [ |
| 1895 | !isUndefined(forwardId), |
| 1896 | useGoForwardCallback(checkpoints), |
| 1897 | forwardId, |
| 1898 | ifNotUndefined(forwardId, (id) => |
| 1899 | getThing(checkpoints)?.getCheckpoint(id), |
| 1900 | ) ?? EMPTY_STRING, |
| 1901 | ]; |
| 1902 | }; |
| 1903 | |
| 1904 | export const useCheckpointIdsListener = ( |
| 1905 | listener: CheckpointIdsListener, |
searching dependent graphs…