"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _react = _interopRequireDefault(require("react"));

var _reactstrap = require("reactstrap");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

const DeleteModal = ({
  onDeleteEntry,
  toggle,
  isOpen
}) => {
  if (typeof window === 'undefined') {
    return null;
  } else {
    return /*#__PURE__*/_react.default.createElement(_reactstrap.Modal, {
      isOpen: isOpen,
      toggle: toggle,
      className: "customModal custom-delete-filter-modal"
    }, /*#__PURE__*/_react.default.createElement(_reactstrap.ModalHeader, {
      className: "custom-modal-header",
      toggle: toggle
    }), /*#__PURE__*/_react.default.createElement(_reactstrap.ModalBody, {
      className: "text-center mb-5"
    }, /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement("strong", null, "DELETE PAGE?")), /*#__PURE__*/_react.default.createElement("button", {
      className: "btn btn-primary large-btn",
      type: "button",
      "data-dismiss": "modal",
      onClick: onDeleteEntry
    }, "DELETE")), /*#__PURE__*/_react.default.createElement("style", {
      jsx: true
    }, `

                    h5{
                        width: 100% !important
                    }`));
  }
};

var _default = DeleteModal;
exports.default = _default;