(checkpointsOrCheckpointsId)
| 1205 | ); |
| 1206 | }; |
| 1207 | var useUndoInformation = (checkpointsOrCheckpointsId) => { |
| 1208 | const checkpoints = useCheckpointsOrCheckpointsById( |
| 1209 | checkpointsOrCheckpointsId |
| 1210 | ); |
| 1211 | const [backwardIds, currentId] = useCheckpointIds(checkpoints); |
| 1212 | return [ |
| 1213 | !arrayIsEmpty(backwardIds), |
| 1214 | useGoBackwardCallback(checkpoints), |
| 1215 | currentId, |
| 1216 | ifNotUndefined(currentId, (id) => checkpoints?.getCheckpoint(id)) ?? EMPTY_STRING |
| 1217 | ]; |
| 1218 | }; |
| 1219 | var useRedoInformation = (checkpointsOrCheckpointsId) => { |
| 1220 | const checkpoints = useCheckpointsOrCheckpointsById( |
| 1221 | checkpointsOrCheckpointsId |
nothing calls this directly
no test coverage detected
searching dependent graphs…