"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _ComponentContainer = require("../../../Framework/ComponentContainer");
var _AlertDialog = _interopRequireDefault(require("../Components/AlertDialog"));
var _ServiceLocator = require("../../ServiceLocator");
var _i18n = require("../../../Framework/i18n");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var mapStateToProps = function mapStateToProps(_ref) {
  var message = _ref.ui.message;
  return {
    Component: _AlertDialog["default"],
    message: message,
    title: (0, _i18n.t)('errorDialogTitle')
  };
};
var mapDispatchToProps = function mapDispatchToProps() {
  return {
    dismissMessage: function dismissMessage() {
      return _ServiceLocator.Services.ui.dismissAlert();
    }
  };
};
var _default = exports["default"] = (0, _ComponentContainer.containerConnect)(mapStateToProps, mapDispatchToProps);