'use strict';

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

var vue = require('vue');
var index = require('../../empty/index.cjs');
require('./context/index.cjs');
var context = require('./context/context.cjs');

function DefaultRenderEmpty(props) {
  const configProvider = vue.inject(context.configProviderKey, {
    ...context.defaultConfigProvider
  });
  const prefixCls = vue.computed(() => configProvider.getPrefixCls("empty", props.prefixCls));
  const renderHtml = (componentName) => {
    switch (componentName) {
      case "Table":
      case "List":
        return vue.createVNode(index.Empty, {
          "image": index.Empty.PRESENTED_IMAGE_SIMPLE
        }, null);
      case "Select":
      case "TreeSelect":
      case "Cascader":
      case "Transfer":
      case "Mentions":
        return vue.createVNode(index.Empty, {
          "image": index.Empty.PRESENTED_IMAGE_SIMPLE,
          "class": `${prefixCls.value}-small`
        }, null);
      default:
        return vue.createVNode(index.Empty, null, null);
    }
  };
  return renderHtml(props.componentName);
}
function renderEmpty(componentName) {
  return vue.createVNode(DefaultRenderEmpty, {
    "componentName": componentName
  }, null);
}

exports.DefaultRenderEmpty = DefaultRenderEmpty;
exports.default = renderEmpty;
//# sourceMappingURL=renderEmpty.cjs.map
