import { createVNode } from 'vue';
import '../../../utils/index.mjs';
import { useInjectMenu } from './hooks/useMenuContext.mjs';
import { classNames } from '../../../utils/dom/class.mjs';

const InternalSubMenuList = (_props, {
  slots,
  attrs
}) => {
  var _a;
  const {
    prefixCls,
    mode
  } = useInjectMenu();
  return createVNode("ul", {
    ...attrs,
    "class": classNames(prefixCls.value, `${prefixCls.value}-sub`, `${prefixCls.value}-${mode.value === "inline" ? "inline" : "vertical"}`),
    "data-menu-list": true
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
};
InternalSubMenuList.displayName = "SubMenuList";

export { InternalSubMenuList as default };
//# sourceMappingURL=SubMenuList.mjs.map
