Preview: noticeMessage.interface.ts
Size: 482 B
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/src/frontend/interfaces/noticeMessage.interface.ts
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
}
Directory Contents
Dirs: 2 × Files: 6