Loading.tsx 328 B

123456789101112131415161718
  1. import React from 'react';
  2. import Dialog from '../components/Dialog';
  3. import LoadingComp from '../components/Loading';
  4. import useStore from '../store';
  5. const Loading = () => {
  6. const [{ isLoading }] = useStore();
  7. return (
  8. <Dialog open={isLoading}>
  9. <LoadingComp />
  10. </Dialog>
  11. );
  12. };
  13. export default Loading;