@bee-design/ui
Version:
Bee Design React UI Library.
14 lines (13 loc) • 569 B
TypeScript
import { ReactInstance } from 'react';
import { ConfigProps } from '.';
import { NotificationProps } from './interface';
declare type hookNotificationFunc = (config: NotificationProps) => ReactInstance;
export declare type notificationFuncType = {
info?: hookNotificationFunc;
success?: hookNotificationFunc;
warning?: hookNotificationFunc;
error?: hookNotificationFunc;
normal?: hookNotificationFunc;
};
declare function useNotification(commonConfig?: ConfigProps): [notificationFuncType, JSX.Element];
export default useNotification;