Files
icehrm/web/node_modules/antd/lib/notification/hooks/useNotification.d.ts
2020-05-20 18:47:29 +02:00

8 lines
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>)>];