"use strict";

exports.__esModule = true;
exports.default = void 0;
var _react = require("react");
var _reactRedux = require("react-redux");
var _locale = require("../selectors/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;
};
var Head = function Head() {
  var locale = (0, _reactRedux.useSelector)(_locale.currentLocaleOrDefault);
  (0, _react.useEffect)(function () {
    if (document.documentElement.lang !== locale) {
      document.documentElement.setAttribute("lang", locale);
    }
  });
  return null;
};
__signature__(Head, "useSelector{locale}\nuseEffect{}", function () {
  return [_reactRedux.useSelector];
});
__signature__(Head, "useSelector{locale}\nuseEffect{}", function () {
  return [_reactRedux.useSelector];
});
var _default = Head;
var _default2 = _default;
var _default3 = exports.default = _default2;
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(Head, "Head", "/home/vsts/work/1/s/src/components/Head.js");
  reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Head.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(Head, "Head", "/home/vsts/work/1/s/src/components/Head.js");
  reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Head.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();