2022-12-11 06:58:22 +00:00
|
|
|
import { Modal as MainComponent } from './Modal';
|
|
|
|
import { ModalHeader } from './ModalHeader';
|
|
|
|
import { ModalBody } from './ModalBody';
|
|
|
|
import { ModalFooter } from './ModalFooter';
|
|
|
|
|
2022-12-20 21:07:34 +00:00
|
|
|
export { ModalType, type OnSubmit } from './types';
|
|
|
|
|
2022-12-11 06:58:22 +00:00
|
|
|
interface WithSubComponents {
|
|
|
|
Header: typeof ModalHeader;
|
|
|
|
Body: typeof ModalBody;
|
|
|
|
Footer: typeof ModalFooter;
|
|
|
|
}
|
|
|
|
|
|
|
|
const Modal = MainComponent as typeof MainComponent & WithSubComponents;
|
|
|
|
|
|
|
|
Modal.Header = ModalHeader;
|
|
|
|
Modal.Body = ModalBody;
|
|
|
|
Modal.Footer = ModalFooter;
|
|
|
|
|
|
|
|
export { Modal };
|