(props)
| 1 | import { Skeleton, Stack } from "@mui/material"; |
| 2 | |
| 3 | const MarkdownLoading = (props) => { |
| 4 | const { theme = "light", backgroundColor: defaultBackgroundColor } = props; |
| 5 | |
| 6 | const isLight = theme === "light"; |
| 7 | const backgroundColor = |
| 8 | defaultBackgroundColor ?? |
| 9 | (isLight ? "#1010101C" : "rgba(255, 255, 255, 0.45)"); |
| 10 | |
| 11 | return ( |
| 12 | <Stack direction="column" spacing="8px" className="markdown-skeleton"> |
| 13 | <Skeleton |
| 14 | variant="text" |
| 15 | sx={{ |
| 16 | fontSize: "32px", |
| 17 | width: "60%", |
| 18 | backgroundColor, |
| 19 | }} |
| 20 | ></Skeleton> |
| 21 | <Skeleton |
| 22 | variant="text" |
| 23 | sx={{ fontSize: "16px", backgroundColor }} |
| 24 | ></Skeleton> |
| 25 | <Skeleton |
| 26 | variant="text" |
| 27 | sx={{ fontSize: "16px", backgroundColor }} |
| 28 | ></Skeleton> |
| 29 | <Skeleton |
| 30 | variant="text" |
| 31 | sx={{ fontSize: "16px", backgroundColor }} |
| 32 | ></Skeleton> |
| 33 | <Skeleton |
| 34 | variant="rectangular" |
| 35 | height={60} |
| 36 | sx={{ borderRadius: "8px", backgroundColor }} |
| 37 | /> |
| 38 | </Stack> |
| 39 | ); |
| 40 | }; |
| 41 | |
| 42 | export default MarkdownLoading; |
nothing calls this directly
no outgoing calls
no test coverage detected