"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var MenuZone_exports = {};
__export(MenuZone_exports, {
  MenuZone: () => MenuZone
});
module.exports = __toCommonJS(MenuZone_exports);
var import_jsx_runtime = require("react/jsx-runtime");
var import_editor = require("@cmpd/editor");
var import_useBreakpoint = require("../hooks/useBreakpoint");
var import_useReadonly = require("../hooks/useReadonly");
var import_ActionsMenu = require("./ActionsMenu");
var import_DuplicateButton = require("./DuplicateButton");
var import_Menu = require("./Menu");
var import_PageMenu = require("./PageMenu/PageMenu");
var import_RedoButton = require("./RedoButton");
var import_TrashButton = require("./TrashButton");
var import_UndoButton = require("./UndoButton");
const MenuZone = (0, import_editor.track)(function MenuZone2() {
  const editor = (0, import_editor.useEditor)();
  const breakpoint = (0, import_useBreakpoint.useBreakpoint)();
  const isReadonly = (0, import_useReadonly.useReadonly)();
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "tlui-menu-zone", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "tlui-buttons__horizontal", children: [
    /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Menu.Menu, {}),
    /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_PageMenu.PageMenu, {}),
    breakpoint >= 6 && !isReadonly && !editor.isInAny("hand", "zoom") && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_UndoButton.UndoButton, {}),
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_RedoButton.RedoButton, {}),
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TrashButton.TrashButton, {}),
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_DuplicateButton.DuplicateButton, {}),
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ActionsMenu.ActionsMenu, {})
    ] })
  ] }) });
});
//# sourceMappingURL=MenuZone.js.map
