import { defineComponent, createVNode, mergeProps } from 'vue';
import { flattenChildren } from '../_util/props-util/index.mjs';
import '../hooks/index.mjs';
import useConfigInject from '../config-provider/hooks/useConfigInject.mjs';

const breadcrumbSeparatorProps = () => ({
  prefixCls: String
});
var BreadcrumbSeparator = /* @__PURE__ */ defineComponent({
  compatConfig: {
    MODE: 3
  },
  name: "ABreadcrumbSeparator",
  __ANT_BREADCRUMB_SEPARATOR: true,
  inheritAttrs: false,
  props: breadcrumbSeparatorProps(),
  setup(props, {
    slots,
    attrs
  }) {
    const {
      prefixCls
    } = useConfigInject("breadcrumb", props);
    return () => {
      var _a;
      const {
        separator,
        class: className,
        ...restAttrs
      } = attrs;
      const children = flattenChildren((_a = slots.default) == null ? void 0 : _a.call(slots));
      return createVNode("span", mergeProps({
        "class": [`${prefixCls.value}-separator`, className]
      }, restAttrs), [children.length > 0 ? children : "/"]);
    };
  }
});

export { breadcrumbSeparatorProps, BreadcrumbSeparator as default };
//# sourceMappingURL=BreadcrumbSeparator.mjs.map
