aswi2022code-of-duty-gitlab/frontend/src/features/Reusables/ContentLoading.tsx @ b523c74d
1 |
import { CircularProgress, Stack, Typography } from '@mui/material' |
---|---|
2 |
import { Fragment } from 'react' |
3 |
|
4 |
/**
|
5 |
* Component that shows a skeleton while the specified item is loading
|
6 |
* @returns
|
7 |
*/
|
8 |
const ContentLoading = () => ( |
9 |
<Fragment> |
10 |
<Typography align="center" fontWeight={400}> |
11 |
Loading ... |
12 |
</Typography> |
13 |
<Stack sx={{ mt: 2 }} justifyContent="center" alignItems="center"> |
14 |
<CircularProgress /> |
15 |
</Stack> |
16 |
</Fragment> |
17 |
)
|
18 |
|
19 |
export default ContentLoading |