import React from 'react'; import { Empty } from 'antd'; import { useTranslation } from 'react-i18next'; import { t } from 'i18next'; interface EmptyDataProps { /** 自定义文案 */ description?: string; /** 组件高度 */ height?: number | string; } const EmptyData: React.FC = ({ description = t('common.noData'), height = 220 }) => { return (
{description}} />
); }; export default EmptyData;