true if there is at least one redo step available
true if there is at least one undo step available
the model to pass to the Layout component
redo the most recently undone change, if any
the number of redo steps available
clear the undo/redo history without replacing the model
Replaces the model (e.g. after loading a layout). By default the undo/redo history is
cleared; pass false as the second argument to keep it (for example for an in-place
round-trip of the same model, which should not lose the history).
undo the most recent change, if any
the number of undo steps available
The result of the useUndo hook