"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = MoreMenu;
var _data = require("@wordpress/data");
var _coreData = require("@wordpress/core-data");
var _editor = require("@wordpress/editor");
var _siteExport = _interopRequireDefault(require("./site-export"));
var _welcomeGuideMenuItem = _interopRequireDefault(require("./welcome-guide-menu-item"));
var _lockUnlock = require("../../lock-unlock");
var _jsxRuntime = require("react/jsx-runtime");
/**
 * WordPress dependencies
 */

/**
 * Internal dependencies
 */

const {
  ToolsMoreMenuGroup,
  PreferencesModal
} = (0, _lockUnlock.unlock)(_editor.privateApis);
function MoreMenu() {
  const isBlockBasedTheme = (0, _data.useSelect)(select => {
    return select(_coreData.store).getCurrentTheme().is_block_theme;
  }, []);
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
    children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(ToolsMoreMenuGroup, {
      children: [isBlockBasedTheme && /*#__PURE__*/(0, _jsxRuntime.jsx)(_siteExport.default, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_welcomeGuideMenuItem.default, {})]
    }), /*#__PURE__*/(0, _jsxRuntime.jsx)(PreferencesModal, {})]
  });
}
//# sourceMappingURL=index.js.map