MCPcopy Create free account
hub / github.com/LevelUpWeb3/app / MarkdownLoading

Function MarkdownLoading

src/components/MarkdownViewer/MarkdownLoading.tsx:3–40  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

1import { Skeleton, Stack } from "@mui/material";
2
3const 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
42export default MarkdownLoading;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected