import * as React from 'react'; import Empty from '../empty'; import { ConfigConsumer, ConfigConsumerProps } from '.'; const renderEmpty = (componentName?: string): React.ReactNode => ( {({ getPrefixCls }: ConfigConsumerProps) => { const prefix = getPrefixCls('empty'); switch (componentName) { case 'Table': case 'List': return ; case 'Select': case 'TreeSelect': case 'Cascader': case 'Transfer': return ; default: return ; } }} ); export type RenderEmptyHandler = typeof renderEmpty; export default renderEmpty;