Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame contribute delete
482 Bytes
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
}