UNPKG

@bee-design/ui

Version:

Bee Design React UI Library.

13 lines (12 loc) 489 B
import { ConfigProps, MessageType } from '.'; import { MessageProps } from './interface'; declare type hookMessageFunc = (config: MessageProps | string) => MessageType; export declare type messageFuncType = { info?: hookMessageFunc; success?: hookMessageFunc; warning?: hookMessageFunc; error?: hookMessageFunc; normal?: hookMessageFunc; }; declare function useMessage(commonConfig?: ConfigProps): [messageFuncType, JSX.Element]; export default useMessage;