import { Button, Empty } from 'antd'; import classNames from 'classnames'; import { useTranslation } from 'react-i18next'; interface Props { className?: string; error?: boolean; description?: string; refresh?: () => void; } function MyEmpty({ className, error, description, refresh }: Props) { const { t } = useTranslation(); return ( {t('try_again')} ) : ( (description ?? t('no_data')) ) } /> ); } export default MyEmpty;