import {
  ModalBody,
  ModalFooter,
  ModalHeader,
  ModalRegion as ModalRegionPrimitive,
  ModalRoot,
  alert,
  confirm,
} from './Modal';

export const Modal = Object.assign(ModalRoot, {
  Header: ModalHeader,
  Body: ModalBody,
  Footer: ModalFooter,
});

export const ModalRegion = Object.assign(ModalRegionPrimitive, {
  alert,
  confirm,
});

export { useModal } from './useModal';
export { ModalRenderer } from './ModalRenderer';
export { AlertModal } from './AlertModal';
export { ConfirmModal } from './ConfirmModal';
