import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["dataList"];
import React from 'react';
import "./index.scss";
import MenuListItem from "./menu-list-item";
var MenuList = function MenuList(_ref) {
  var dataList = _ref.dataList,
    otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
  var _otherProps = otherProps || {};
  return /*#__PURE__*/React.createElement("div", _extends({
    className: "menu-list__panel"
  }, _otherProps), /*#__PURE__*/React.createElement("div", {
    className: "menu-list__panel__item-list"
  }, dataList.map(function (item, index) {
    return /*#__PURE__*/React.createElement(MenuListItem, {
      key: index,
      title: item.title,
      iconUrl: item.iconUrl,
      handleClick: item.handleClick
    });
  })));
};
MenuList.displayName = 'MenuList';
export default MenuList;