useDefaultHelpers
Public function
Signature
function useDefaultHelpers(): {
addToast: (
toast: Omit<import('./hooks/useToastsProvider').TLUiToast, 'id'> & {
id?: string | undefined
}
) => string
removeToast: (id: string) => string
clearToasts: () => void
addDialog: (
dialog: Omit<import('./hooks/useDialogsProvider').TLUiDialog, 'id'> & {
id?: string | undefined
}
) => string
clearDialogs: () => void
removeDialog: (id: string) => string
updateDialog: (
id: string,
newDialogData: Partial<import('./hooks/useDialogsProvider').TLUiDialog>
) => string
msg: (id: string) => string
isMobile: boolean
}
References
Source