import * as React from 'react'; import type { ConfigConsumerProps } from '.'; import { ConfigConsumer } from '.'; import Empty from '../empty'; const defaultRenderEmpty = (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': case 'Mentions': return ; /* istanbul ignore next */ default: // Should never hit if we take all the component into consider. return ; } }} ); export type RenderEmptyHandler = typeof defaultRenderEmpty; export default defaultRenderEmpty;