"use strict";

exports.__esModule = true;
exports.default = void 0;

var _reactRedux = require("react-redux");

var _recompose = require("recompose");

var _locale = require("../actions/locale");

(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();

(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();

var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};

var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};

console.warn("withLocaleSwitch has been deprecated");
var withLocaleSwitch = (0, _recompose.withProps)(__signature__(__signature__(function (_ref) {
  var locale = _ref.locale;
  var dispatch = (0, _reactRedux.useDispatch)();
  return {
    onClick: function onClick() {
      return dispatch((0, _locale.changeLocale)(locale));
    }
  };
}, "useDispatch{dispatch}", function () {
  return [_reactRedux.useDispatch];
}), "useDispatch{dispatch}", function () {
  return [_reactRedux.useDispatch];
}));
var _default = withLocaleSwitch;
var _default2 = _default;
var _default3 = _default2;
exports.default = _default3;
;

(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(withLocaleSwitch, "withLocaleSwitch", "/home/vsts/work/1/s/src/hocs/withLocaleSwitch.js");
  reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/hocs/withLocaleSwitch.js");
})();

;

(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();

;

(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;

  if (!reactHotLoader) {
    return;
  }

  reactHotLoader.register(withLocaleSwitch, "withLocaleSwitch", "/home/vsts/work/1/s/src/hocs/withLocaleSwitch.js");
  reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/hocs/withLocaleSwitch.js");
})();

;

(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();