Public function

Signature
function useIsToolSelected(tool: TLUiToolItem): boolean
Parameters
NameDescription

tool

TLUiToolItem
Returns
boolean
References

TLUiToolItem

Source

packages/tldraw/src/lib/ui/components/Toolbar/DefaultToolbarContent.tsx

useExportAsuseKeyboardShortcuts