import "../../../rc-menu/es/index.mjs";
import * as t from "react";
import { forwardRef as f, useRef as p, useImperativeHandle as s } from "react";
import { SiderContext as a } from "../layout/Sider.mjs";
import c from "./MenuDivider.mjs";
import d from "./MenuItem.mjs";
import l from "./SubMenu.mjs";
import M from "./menu.mjs";
import v from "../../../rc-menu/es/MenuItemGroup.mjs";
const e = /* @__PURE__ */ f((n, m) => {
  const r = p(null), u = t.useContext(a);
  return s(m, () => ({
    menu: r.current,
    focus: (i) => {
      var o;
      (o = r.current) === null || o === void 0 || o.focus(i);
    }
  })), /* @__PURE__ */ t.createElement(M, Object.assign({
    ref: r
  }, n, u));
});
e.Item = d;
e.SubMenu = l;
e.Divider = c;
e.ItemGroup = v;
process.env.NODE_ENV !== "production" && (e.displayName = "Menu");
const C = e;
export {
  C as default
};
