MyEmpty.tsx 425 B

1234567891011121314151617
  1. import { Empty } from 'antd';
  2. import classNames from 'classnames';
  3. interface Props {
  4. className?: string;
  5. imgUrl?: string;
  6. }
  7. const MyEmpty: React.FC<Props> = ({ className, imgUrl = '/pictures/empty.png' }) => {
  8. return (
  9. <div className={classNames('m-auto', { className })}>
  10. <Empty image={imgUrl} imageStyle={{ margin: '0 auto', width: '100%', height: '100%' }} />
  11. </div>
  12. );
  13. };
  14. export default MyEmpty;