UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

36 lines (35 loc) 964 B
import { ReactNode } from 'react'; import { ModalContainerProps } from '../modal-container/ModalContainer'; import { ModalProps } from '../modal/Modal'; export interface ModalProviderProps extends ModalContainerProps { children?: ReactNode; } declare const ModalProvider: { (props: ModalProviderProps): JSX.Element; displayName: string; useModal: () => { open: (props: ModalProps & { children: any; }) => void; location?: { pathname: string; } | undefined; }; injectModal: (Target: any) => { (props: any): JSX.Element; displayName: string; }; }; export declare const useModal: () => { open: (props: ModalProps & { children: any; }) => void; location?: { pathname: string; } | undefined; }; export declare const injectModal: (Target: any) => { (props: any): JSX.Element; displayName: string; }; export default ModalProvider;