Files
nobat724_front/app/component/loading/Custom.js
T

17 lines
325 B
JavaScript

import { Skeleton } from "@mui/material";
function CustomLoading({ width, height, children, loading }) {
return loading ? (
<Skeleton
className={width === "full" ? "!w-full" : ""}
height={height}
variant="rounded"
width={width}
/>
) : (
children
);
}
export default CustomLoading;