import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
import * as __WEBPACK_EXTERNAL_MODULE__components_SchemaInitializerSubMenu_mjs__ from "../components/SchemaInitializerSubMenu.mjs";
const useAriaAttributeOfMenuItem = ()=>{
    const { isInMenu } = (0, __WEBPACK_EXTERNAL_MODULE__components_SchemaInitializerSubMenu_mjs__.useSchemaInitializerSubMenuContext)();
    const attribute = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
        if (!isInMenu) return {
            role: 'menuitem'
        };
        return {};
    }, [
        isInMenu
    ]);
    return {
        attribute
    };
};
export { useAriaAttributeOfMenuItem };
