"use client";
import * as React from "react";
import { MenuRoot } from "../root/MenuRoot.js";
import { useMenuRootContext } from "../root/MenuRootContext.js";
import { MenuSubmenuRootContext } from "./MenuSubmenuRootContext.js";
import { useMenuSubmenuRootContext } from "./MenuSubmenuRootContext.js";
import { jsx } from "react/jsx-runtime";
function MenuSubmenuRoot(props) {
  const parentMenu = useMenuRootContext().store;
  const contextValue = React.useMemo(() => ({
    parentMenu
  }), [parentMenu]);
  return /* @__PURE__ */ jsx(MenuSubmenuRootContext.Provider, {
    value: contextValue,
    children: /* @__PURE__ */ jsx(MenuRoot, {
      ...props
    })
  });
}
export {
  MenuSubmenuRoot,
  useMenuSubmenuRootContext
};
//# sourceMappingURL=MenuSubmenuRoot.js.map
