"use strict";

exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _expandableItem = _interopRequireDefault(require("../expandable-item"));
var _types = require("./types");
var _style = _interopRequireDefault(require("./style.css"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const ExpandableList = ({
  items
}) => {
  return /*#__PURE__*/_react.default.createElement("ul", {
    className: _style.default.list,
    "data-name": "expandable-item"
  }, items.map((item, index) => {
    return /*#__PURE__*/_react.default.createElement("li", {
      key: `menu-link-item-${index}`,
      id: `menu-link-item-${index}`,
      className: _style.default.item
    }, /*#__PURE__*/_react.default.createElement(_expandableItem.default, item));
  }));
};
ExpandableList.propTypes = process.env.NODE_ENV !== "production" ? _types.propTypes : {};
var _default = exports.default = ExpandableList;
//# sourceMappingURL=index.js.map