Derives the input for the inverse operation from the forward operation's input and output. Return undefined to indicate the operation is not undoable.
The inverse operation to invoke for undo.
OptionalmessageOptional message to show in the undo toast. Can be a static Label or a function that derives the message from input/output.
The forward operation.
Props for creating an UndoMapping.