import { createVNode as _createVNode } from "vue";
import { computed, defineComponent } from 'vue-demi';
import { useInjectMenu } from './hooks/useMenuContext';
export const menuDividerProps = () => ({
  prefixCls: String,
  dashed: Boolean
});
export default defineComponent({
  compatConfig: {
    MODE: 3
  },
  name: 'AMenuDivider',
  props: menuDividerProps(),
  setup(props) {
    const {
      prefixCls
    } = useInjectMenu();
    const cls = computed(() => {
      return {
        [`${prefixCls.value}-item-divider`]: true,
        [`${prefixCls.value}-item-divider-dashed`]: !!props.dashed
      };
    });
    return () => {
      return _createVNode("li", {
        "class": cls.value
      }, null);
    };
  }
});