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

14 lines
343 B
JavaScript

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