Liferay.Loader.define("site-navigation-admin-web@3.0.25/site_navigation_menu_editor/components/Toolbar", ['module', 'exports', 'require', '@frontend-taglib-clay$clayui/button', 'frontend-js-react-web$react', '../constants/sidebarPanelIds', '../contexts/SidebarPanelIdContext', './AppLayout'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports.Toolbar = void 0;

    var _button = require("@frontend-taglib-clay$clayui/button");

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

    var _sidebarPanelIds = require("../constants/sidebarPanelIds");

    var _SidebarPanelIdContext = require("../contexts/SidebarPanelIdContext");

    var _AppLayout = require("./AppLayout");

    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 Toolbar = function Toolbar() {
      var setSidebarPanelId = (0, _SidebarPanelIdContext.useSetSidebarPanelId)();

      return _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement(_AppLayout.AppLayout.ToolbarItem, {
        expand: true
      }), _react["default"].createElement(_AppLayout.AppLayout.ToolbarItem, null, _react["default"].createElement(_button.ClayButtonWithIcon, {
        displayType: "unstyled",
        monospaced: true,
        onClick: function onSettingsButtonClick() {
          setSidebarPanelId(_sidebarPanelIds.SIDEBAR_PANEL_IDS.menuSettings);
        },
        small: true,
        symbol: "cog"
      })), _react["default"].createElement(_AppLayout.AppLayout.ToolbarItem, null, _react["default"].createElement(_button.ClayButtonWithIcon, {
        monospaced: true,
        small: true,
        symbol: "plus"
      })));
    };

    exports.Toolbar = Toolbar;
    //# sourceMappingURL=Toolbar.js.map
  }
});
//# sourceMappingURL=Toolbar.js.map