UNPKG

@douyinfe/semi-ui

Version:

A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.

19 lines (18 loc) 543 B
import { ReactNode } from 'react'; import { ConfirmProps } from '../confirm'; import { ModalReactProps } from '../Modal'; type UseModalReturnHooksType = (config: ModalReactProps) => { destroy: () => void; update: (newConfig: ConfirmProps) => void; }; export default function useModal(): [ { info: UseModalReturnHooksType; success: UseModalReturnHooksType; error: UseModalReturnHooksType; warning: UseModalReturnHooksType; confirm: UseModalReturnHooksType; }, ReactNode ]; export {};