antd
Version:
An enterprise-class UI design language and React components implementation
8 lines (7 loc) • 541 B
TypeScript
import type { NoticeContent as RCNoticeContent, NotificationInstance as RCNotificationInstance } from 'rc-notification/lib/Notification';
import * as React from 'react';
import type { ArgsProps, MessageInstance } from '..';
export default function createUseMessage(getRcNotificationInstance: (args: ArgsProps, callback: (info: {
prefixCls: string;
instance: RCNotificationInstance;
}) => void) => void, getRCNoticeProps: (args: ArgsProps, prefixCls: string) => RCNoticeContent): () => readonly [MessageInstance, React.ReactElement];