"use strict";

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

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

var _classnames = _interopRequireDefault(require("classnames"));

var _okrMenus = _interopRequireDefault(require("./export-modules/okr-menus"));

var _appraisalMenus = _interopRequireDefault(require("./export-modules/appraisal-menus"));

var _manageMenus = _interopRequireDefault(require("./export-modules/manage-menus"));

var _interviewMenus = _interopRequireDefault(require("./export-modules/interview-menus"));

require("./index.css");

var _demoMenus = _interopRequireDefault(require("./export-modules/demo-menus"));

var _summaryMenus = _interopRequireDefault(require("./export-modules/summary-menus"));

var _surveyMenu = _interopRequireDefault(require("./export-modules/survey-menu"));

var _skynetDashboardMenu = _interopRequireDefault(require("./export-modules/skynet-dashboard-menu"));

var _researchMenu = _interopRequireDefault(require("./export-modules/research-menu"));

var _excluded = ["type"];

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

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

var preCls = 'titaui-menus';

var Menus = function Menus(props) {
  var type = props.type,
      restProps = _objectWithoutProperties(props, _excluded);

  var renderMenuByType = function renderMenuByType() {
    if (type === 'okr') {
      return /*#__PURE__*/_react["default"].createElement(_okrMenus["default"], restProps);
    }

    if (type === 'appraisal') {
      return /*#__PURE__*/_react["default"].createElement(_appraisalMenus["default"], restProps);
    }

    if (type === 'manage') {
      return /*#__PURE__*/_react["default"].createElement(_manageMenus["default"], restProps);
    }

    if (type === 'demofree') {
      return /*#__PURE__*/_react["default"].createElement(_demoMenus["default"], restProps);
    }

    if (type === 'interview') {
      return /*#__PURE__*/_react["default"].createElement(_interviewMenus["default"], restProps);
    }

    if (type === 'summary') {
      return /*#__PURE__*/_react["default"].createElement(_summaryMenus["default"], restProps);
    }

    if (type === 'survey') {
      return /*#__PURE__*/_react["default"].createElement(_surveyMenu["default"], restProps);
    }

    if (type === 'skynet-dashboard') {
      return /*#__PURE__*/_react["default"].createElement(_skynetDashboardMenu["default"], restProps);
    }

    if (type === 'research') {
      return /*#__PURE__*/_react["default"].createElement(_researchMenu["default"], restProps);
    }

    return undefined;
  };

  return /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])(preCls)
  }, renderMenuByType());
};

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