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