import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
import * as __WEBPACK_EXTERNAL_MODULE__chakra_ui_react__ from "@chakra-ui/react";
const BaseModal = ({ isClosable = true, isOpen = false, heading, onClose, children, size, initialFocusRef })=>/*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_react__.Modal, {
        onClose: onClose,
        isOpen: isOpen,
        isCentered: true,
        closeOnOverlayClick: isClosable,
        closeOnEsc: isClosable,
        size: size,
        initialFocusRef: initialFocusRef
    }, /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_react__.ModalOverlay, null), /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_react__.ModalContent, null, /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_react__.ModalHeader, {
        "data-testid": "modal-heading"
    }, heading), isClosable ? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_react__.ModalCloseButton, {
        "data-testid": "modal-close-button",
        onClick: onClose
    }) : null, /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].createElement(__WEBPACK_EXTERNAL_MODULE__chakra_ui_react__.ModalBody, {
        "data-testid": "modal-body",
        mb: 4
    }, children)));
/* ESM default export */ const Modal_rslib_entry_ = BaseModal;
export { Modal_rslib_entry_ as default };
