import React from 'react';
import { Empty } from 'antd';

function RenderEmpty(componentName: any) {
  switch (componentName) {
    case 'Table':
    case 'List':
      return <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} />;

    case 'Select':
    case 'TreeSelect':
    case 'Cascader':
    case 'Transfer':
    case 'Mentions':
      return <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} className={`antd-empty-small`} />;
    default:
      return <Empty />;
  }
}

export default RenderEmpty;
