UNPKG

@chief-editor/ui

Version:

UI Component for chief editor

15 lines (14 loc) 648 B
import { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react'; import { Alert, IAlertProps } from './Alert'; import { Confirm, IConfirmProps } from './Confirm'; import { alert, confirm } from './manual'; import { IModalProps, ModalRefType } from './Modal'; declare type ModalComponentType = ForwardRefExoticComponent<PropsWithoutRef<IModalProps> & RefAttributes<ModalRefType>>; interface ModalType extends ModalComponentType { Alert: typeof Alert; Confirm: typeof Confirm; alert: typeof alert; confirm: typeof confirm; } declare const Modal: ModalType; export { Modal, IModalProps, IConfirmProps, IAlertProps };