"use strict";

exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _style = _interopRequireDefault(require("./style.css"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const SsMenuList = props => {
  const {
    items = []
  } = props;
  const itemsView = items.map(({
    title,
    href
  }, index) => /*#__PURE__*/_react.default.createElement("li", {
    key: index,
    className: _style.default.item
  }, /*#__PURE__*/_react.default.createElement("a", {
    href: href
  }, title)));
  return /*#__PURE__*/_react.default.createElement("ul", {
    className: _style.default.list
  }, itemsView);
};
SsMenuList.propTypes = process.env.NODE_ENV !== "production" ? {
  items: _propTypes.default.arrayOf(_propTypes.default.shape({
    href: _propTypes.default.string,
    title: _propTypes.default.string
  }))
} : {};
var _default = exports.default = SsMenuList;
//# sourceMappingURL=index.js.map