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 stdin_exports = {};
__export(stdin_exports, {
  useCurrentMenuLayoutProps: () => useCurrentMenuLayoutProps
});
module.exports = __toCommonJS(stdin_exports);
var import_pro_utils = require("@antdv/pro-utils");
var import_vue = require("vue");
function useCurrentMenuLayoutProps(currentMenu) {
  const currentMenuLayoutProps = (0, import_vue.ref)({});
  (0, import_vue.watchEffect)(() => {
    currentMenuLayoutProps.value = (0, import_pro_utils.omitUndefined)({
      // 有时候会变成对象，是原来的方式
      layout: typeof (0, import_vue.unref)(currentMenu).layout !== "object" ? (0, import_vue.unref)(currentMenu).layout : void 0,
      navTheme: (0, import_vue.unref)(currentMenu).navTheme,
      menuRender: (0, import_vue.unref)(currentMenu).menuRender,
      footerRender: (0, import_vue.unref)(currentMenu).footerRender,
      menuHeaderRender: (0, import_vue.unref)(currentMenu).menuHeaderRender,
      headerRender: (0, import_vue.unref)(currentMenu).headerRender,
      fixSiderbar: (0, import_vue.unref)(currentMenu).fixSiderbar
    });
  });
  return currentMenuLayoutProps;
}
