adminjs
Version:
Admin panel for apps written in node.js
15 lines (14 loc) • 412 B
TypeScript
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;
type?: MessageBoxProps['variant'] | 'error';
options?: TOptions;
resourceId?: string;
body?: ReactNode;
};