'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
var CloseOutlined = require('@ant-design/icons-vue');
var index = require('../_util/props-util/index.js');
var _interface = require('./interface.js');

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

exports.default = FloatButtonContent;
//# sourceMappingURL=FloatButtonContent.js.map
