Files
nobat724_front/app/component/loading/Multiline.js
T
2025-05-12 23:11:41 +03:30

20 lines
446 B
JavaScript

import { Skeleton } from "@mui/material";
function MultilineLoading({ loading, width, height, children, line }) {
return loading
? Array(line)
.fill({})
.map((_, idx) => (
<Skeleton
className={`${width === "full" ? "!w-full" : ""} !my-2`}
variant="rounded"
height={height}
width={width}
key={idx}
/>
))
: children;
}
export default MultilineLoading;