MCPcopy
hub / github.com/botpress/botpress / info

Function info

packages/ui-shared/src/Toaster/index.tsx:77–78  ·  view source on GitHub ↗
(message: string | React.ReactElement, details?: string, options?: ToastOptions)

Source from the content-addressed store, hash-verified

75}
76
77const info = (message: string | React.ReactElement, details?: string, options?: ToastOptions) =>
78 showToast(prepareMessage(message, details), Intent.PRIMARY, Object.assign(infoOptions, options))
79
80const warning = (message: string | React.ReactElement, details?: string, options?: ToastOptions) =>
81 showToast(prepareMessage(message, details), Intent.WARNING, Object.assign(warningOptions, options))

Callers

nothing calls this directly

Calls 2

showToastFunction · 0.85
prepareMessageFunction · 0.85

Tested by

no test coverage detected