antd
Version:
An enterprise-class UI design language and React components implementation
8 lines (7 loc) • 723 B
TypeScript
import * as React from 'react';
import { NotificationInstance as RCNotificationInstance, NoticeContent as RCNoticeContent } from 'rc-notification/lib/Notification';
import { NotificationInstance, ArgsProps } from '..';
export default function createUseNotification(getNotificationInstance: (args: ArgsProps, callback: (info: {
prefixCls: string;
instance: RCNotificationInstance;
}) => void) => void, getRCNoticeProps: (args: ArgsProps, prefixCls: string) => RCNoticeContent): () => [NotificationInstance, React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>];