( checkpointsOrCheckpointsId?: CheckpointsOrCheckpointsId, )
| 2268 | }; |
| 2269 | |
| 2270 | export const useRedoInformation: typeof useRedoInformationDecl = ( |
| 2271 | checkpointsOrCheckpointsId?: CheckpointsOrCheckpointsId, |
| 2272 | ): UndoOrRedoInformation => { |
| 2273 | const checkpoints = useCheckpointsOrCheckpointsById( |
| 2274 | checkpointsOrCheckpointsId, |
| 2275 | ); |
| 2276 | const [, , [forwardId]] = useCheckpointIds(checkpoints); |
| 2277 | return [ |
| 2278 | !isUndefined(forwardId), |
| 2279 | useGoForwardCallback(checkpoints), |
| 2280 | forwardId, |
| 2281 | ifNotUndefined(forwardId, (id) => checkpoints?.getCheckpoint(id)) ?? |
| 2282 | EMPTY_STRING, |
| 2283 | ]; |
| 2284 | }; |
| 2285 | |
| 2286 | export const useCheckpointIdsListener: typeof useCheckpointIdsListenerDecl = ( |
| 2287 | listener: CheckpointIdsListener, |
searching dependent graphs…