Public function

Signature
function unwrapLabel(
  label?: TLUiActionItem['label'],
  menuType?: string
): string | undefined
Parameters
NameDescription

label

TLUiActionItem['label']

menuType

string
Returns
string | undefined
References

TLUiActionItem

Source

packages/tldraw/src/lib/ui/context/actions.tsx

UnlockAllMenuItemuseActions