Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 61x 61x 61x 25x 75x | import { Skeleton, Stack } from "@mui/material";
const styles = {
borderRadius: "16px",
width: "100%",
};
const skeletonConfigs = [
{ height: "50vh" },
{ height: "20vh" },
{ height: "30vh" },
];
const TransactionSkeleton = () => {
return (
<Stack gap={4} width="100%" height="100%" padding="20px">
{skeletonConfigs.map((config, index) => (
<Skeleton
key={index}
variant="rectangular"
sx={{ ...styles, height: config.height }}
/>
))}
</Stack>
);
};
export default TransactionSkeleton;
|