@mocanvas/mocanvas · interface

TLDefaultExternalContentHandlerOpts

interface TLDefaultExternalContentHandlerOpts extends TLExternalContentProps

TLExternalContentProps plus the two UI contexts a handler needs to talk to the user.


Properties · 2

msg: (id: TLUiTranslationKey) => string

The translator, from useTranslation().

toasts: TLUiToastsContextType

The toast queue, from useToasts().

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.