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

14 lines
347 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