File size: 482 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import { type MessageBoxProps } from '@adminjs/design-system'
import { type TOptions } from 'i18next'
import { type ReactNode } from 'react'
/**
* NoticeMessage which can be presented as a "Toast" message.
* @alias NoticeMessage
*/
export type NoticeMessage = {
message: string
// Extra 'error' to handle backwards. Error is replaced to danger in notification box
type?: MessageBoxProps['variant'] | 'error'
options?: TOptions
resourceId?: string
body?: ReactNode
}
|