import type { SpaceProps } from 'antd'; import { Space as AntdSpace } from 'antd'; const Space = (props: SpaceProps) => { const { children, ...rest } = props; if (!children || (Array.isArray(children) && !children.filter((o) => !!o).length)) return null; return {children}; }; export default Space;