"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
var _react = _interopRequireDefault(require("react"));
require("./index.scss");
var _menuListItem = _interopRequireDefault(require("./menu-list-item"));
var _excluded = ["dataList"];
var MenuList = function MenuList(_ref) {
  var dataList = _ref.dataList,
    otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
  var _otherProps = otherProps || {};
  return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
    className: "menu-list__panel"
  }, _otherProps), /*#__PURE__*/_react["default"].createElement("div", {
    className: "menu-list__panel__item-list"
  }, dataList.map(function (item, index) {
    return /*#__PURE__*/_react["default"].createElement(_menuListItem["default"], {
      key: index,
      title: item.title,
      iconUrl: item.iconUrl,
      handleClick: item.handleClick
    });
  })));
};
MenuList.displayName = 'MenuList';
var _default = exports["default"] = MenuList;