25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
955 B

  1. import {Box, CircularProgress, Grid, Typography} from "@mui/material";
  2. import {FormattedMessage} from "react-intl";
  3. const LoadingComponent = ({disableText,alignItems}) => {
  4. return (
  5. <Grid item xs={12} md={12} lg={12} justifyContent="space-between" alignItems="center">
  6. <Box
  7. display="flex"
  8. justifyContent="center"
  9. alignItems="center"
  10. // autoHeight={true}
  11. >
  12. <Grid container direction="column" alignItems={alignItems?alignItems:"center"}>
  13. <CircularProgress/>
  14. {disableText?
  15. null
  16. :
  17. <Typography variant="h5">
  18. <FormattedMessage id="loading" />
  19. </Typography>
  20. }
  21. </Grid>
  22. </Box>
  23. </Grid>
  24. )
  25. }
  26. export default LoadingComponent;