"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.NavigationModal = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _mobxReactLite = require("mobx-react-lite");
var _react2 = require("@wix/bex-core/react");
var _ActionModal = require("../ActionModal");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/NavigationModal/NavigationModal.tsx";
function _NavigationModal() {
  const {
    onNavigationModal
  } = (0, _react2.useWixPatternsContainer)();
  const {
    value
  } = onNavigationModal;
  return /*#__PURE__*/_react.default.createElement(_ActionModal.MessageActionModal, (0, _extends2.default)({
    state: onNavigationModal,
    dataHook: "navigation-modal",
    theme: "destructive"
  }, value && {
    title: value.title,
    content: value.content,
    onAfterClose: value.onAfterClose,
    primaryButtonOnClick: value.onConfirm,
    secondaryButtonOnClick: value.onClose,
    onCloseButtonClick: value.onClose,
    primaryButtonText: value.primaryButtonText,
    secondaryButtonText: value.secondaryButtonText
  }, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 11,
      columnNumber: 5
    }
  }));
}
const NavigationModal = exports.NavigationModal = (0, _mobxReactLite.observer)(_NavigationModal);
//# sourceMappingURL=NavigationModal.js.map