mirror of https://github.com/portainer/portainer
21 lines
527 B
TypeScript
21 lines
527 B
TypeScript
import { Modal as MainComponent } from './Modal';
|
|
import { ModalHeader } from './ModalHeader';
|
|
import { ModalBody } from './ModalBody';
|
|
import { ModalFooter } from './ModalFooter';
|
|
|
|
export { ModalType, type OnSubmit } from './types';
|
|
|
|
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 };
|