import { jsx as _jsx } from "react/jsx-runtime";
import { MenuOpener } from "./menuOpener/MenuOpener.js";
import { MenuState } from "./MenuState.js";
/**
 * @internal
 */
export function SubMenu(props) {
    return (_jsx(MenuState, { opened: props.opened, defaultOpened: props.defaultOpened, onOpenedChange: props.onOpenedChange, children: ({ opened, onOpenedChange }) => (_jsx(MenuOpener, { opened: opened, onOpenedChange: onOpenedChange, topLevelMenu: false, openAction: props.openAction, toggler: props.toggler, alignment: props.alignment, spacing: props.spacing, offset: props.offset, children: props.children })) }));
}
