import { defineComponent, createVNode, Fragment } from 'vue';
import { FileTextOutlined } from '@ant-design/icons-vue';
import '../../../utils/index.mjs';
import { floatButtonContentProps } from './props.mjs';
import { filterEmpty } from '../../../utils/vue/props.mjs';

var Content = /* @__PURE__ */ defineComponent({
  compatConfig: {
    MODE: 3
  },
  name: "AFloatButtonContent",
  inheritAttrs: false,
  props: floatButtonContentProps(),
  setup(props, {
    attrs,
    slots
  }) {
    return () => {
      var _a;
      const {
        prefixCls
      } = props;
      const description = filterEmpty((_a = slots.description) == null ? void 0 : _a.call(slots));
      return createVNode("div", {
        ...attrs,
        "class": [attrs.class, `${prefixCls}-content`]
      }, [slots.icon || description.length ? createVNode(Fragment, null, [slots.icon && createVNode("div", {
        "class": `${prefixCls}-icon`
      }, [slots.icon()]), description.length ? createVNode("div", {
        "class": `${prefixCls}-description`
      }, [description]) : null]) : createVNode("div", {
        "class": `${prefixCls}-icon`
      }, [createVNode(FileTextOutlined, null, null)])]);
    };
  }
});

export { Content as default };
//# sourceMappingURL=FloatButtonContent.mjs.map
