Liferay.Loader.define("site-navigation-admin-web@3.0.25/site_navigation_menu_editor/components/Menu", ['module', 'exports', 'require', 'frontend-js-react-web$prop-types', 'frontend-js-react-web$react', '../contexts/ConstantsContext', './MenuItem'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports.Menu = void 0;

    var _propTypes = _interopRequireDefault(require("frontend-js-react-web$prop-types"));

    var _react = _interopRequireDefault(require("frontend-js-react-web$react"));

    var _ConstantsContext = require("../contexts/ConstantsContext");

    var _MenuItem = require("./MenuItem");

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

    /**
     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
     *
     * This library is free software; you can redistribute it and/or modify it under
     * the terms of the GNU Lesser General Public License as published by the Free
     * Software Foundation; either version 2.1 of the License, or (at your option)
     * any later version.
     *
     * This library is distributed in the hope that it will be useful, but WITHOUT
     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
     * details.
     */
    var Menu = function Menu() {
      var _useConstants = (0, _ConstantsContext.useConstants)(),
          siteNavigationMenuItems = _useConstants.siteNavigationMenuItems;

      return _react["default"].createElement("div", {
        className: "container p-3"
      }, _react["default"].createElement(MenuContent, {
        items: siteNavigationMenuItems
      }));
    };

    exports.Menu = Menu;

    var MenuContent = function MenuContent(_ref) {
      var items = _ref.items;
      return items.map(function (item) {
        return _react["default"].createElement("div", {
          key: item.siteNavigationMenuItemId
        }, _react["default"].createElement(_MenuItem.MenuItem, {
          item: item
        }), _react["default"].createElement("div", {
          className: "pl-4"
        }, !!item.children.length && _react["default"].createElement(MenuContent, {
          items: item.children
        })));
      });
    };
    //# sourceMappingURL=Menu.js.map
  }
});
//# sourceMappingURL=Menu.js.map