"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _ComponentContainer = _interopRequireDefault(require("../../../../Framework/ComponentContainer"));
var _Confirm = _interopRequireDefault(require("../Components/Confirm"));
var _Actions = require("../../../Reducers/Confirm/Actions");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var mapStateToProps = function mapStateToProps(_ref) {
  var confirm = _ref.confirm;
  return {
    Component: _Confirm["default"],
    confirm: confirm
  };
};
var mapDispatchToProps = function mapDispatchToProps(dispatch) {
  return {
    onOk: function onOk() {
      return dispatch((0, _Actions.hideConfirm)(true));
    },
    onCancel: function onCancel() {
      return dispatch((0, _Actions.hideConfirm)(false));
    }
  };
};
var _default = exports["default"] = (0, _ComponentContainer["default"])(mapStateToProps, mapDispatchToProps);