index.tsx 370 B

12345678910111213141516171819
  1. import css from './index.module.css';
  2. import {Spin} from 'antd';
  3. import {FC} from 'react';
  4. type Props = {
  5. tip: string;
  6. width?: string;
  7. height?: string;
  8. };
  9. const Loading: FC<Props> = function ({tip, width, height}) {
  10. return (
  11. <section className={css.loading} style={{width, height}}>
  12. <Spin tip={tip} />
  13. </section>
  14. );
  15. };
  16. export default Loading;