1
|
import { Skeleton, 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 justifyContent="center" alignItems="center">
|
14
|
<Skeleton variant="rectangular" width="100%" height="25%" />
|
15
|
</Stack>
|
16
|
</Fragment>
|
17
|
)
|
18
|
|
19
|
export default ContentLoading
|