"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _react = _interopRequireDefault(require("react"));

var _userSelector = _interopRequireDefault(require("../user-selector"));

var _searchDropdown = _interopRequireDefault(require("./search-dropdown"));

var _getLocale = require("../../utils/getLocale");

require("./index.css");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var DepartMent = function DepartMent(_ref) {
  var setParma = _ref.setParma;

  var onSelect = function onSelect(keys) {
    setParma("groupIds", keys[0].id);
  };

  return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_userSelector["default"].Group, {
    auth: true,
    isGetRoot: true,
    onSelect: onSelect,
    position: "bottomLeft"
  }, /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement(_searchDropdown["default"], null, (0, _getLocale.getLocale)("Mod_Groups")))));
};

var _default = DepartMent;
exports["default"] = _default;