Interface: AmnesiaLabels
Defined in: use-labels.ts:19
Compact label-oriented view of a scope's undo/redo state.
Intended for menu/toolbar bindings that only need enablement + labels and
should not re-render on unrelated snapshot changes (for example version
bumps that keep labels unchanged).
Properties
canRedo
canRedo:
boolean
Defined in: use-labels.ts:23
Whether Redo should be enabled for this scope right now.
canUndo
canUndo:
boolean
Defined in: use-labels.ts:21
Whether Undo should be enabled for this scope right now.
pending
pending:
boolean
Defined in: use-labels.ts:29
Mirrors store pending state for disabling controls during async ops.
redoLabel
redoLabel:
string
Defined in: use-labels.ts:27
"Redo" or "Redo {entry label}" when a labeled entry exists.
scopeId
scopeId:
string
Defined in: use-labels.ts:31
Scope id this selector is currently bound to.
undoLabel
undoLabel:
string
Defined in: use-labels.ts:25
"Undo" or "Undo {entry label}" when a labeled entry exists.