import { inject, computed, createVNode } from 'vue';
import { Empty } from '../../empty/index.mjs';
import './context/index.mjs';
import { configProviderKey, defaultConfigProvider } from './context/context.mjs';

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

export { DefaultRenderEmpty, renderEmpty as default };
//# sourceMappingURL=renderEmpty.mjs.map
