@difizen/mana-app
Version:
17 lines (14 loc) • 460 B
text/typescript
import type { NotificationArgsProps } from '@difizen/mana-react';
import type { ReactNode } from 'react';
export interface NotificationAction {
key: string;
label?: string;
}
export interface NotificationConfig extends NotificationArgsProps {
key?: string;
type?: 'info' | 'warning' | 'success' | 'error';
message: ReactNode;
description?: ReactNode;
actions?: NotificationAction[];
onAction?: (e: any, action: NotificationAction) => void;
}