import React from 'react';
import { Spin } from '@easyv/antd';
import styles from './index.less';

interface IProps {
  spinning?: boolean;
  tip?: string | React.ReactNode;
  delay?: number;
}

export default function LargeLoading(props: IProps) {
  const { spinning = false, tip, delay = 0 } = props;

  return (
    <div className={styles.loadingBox}>
      <Spin spinning={spinning} tip={tip || null} delay={delay} />
    </div>
  );
}
