import { Stack, Skeleton } from "@mui/material"; import { useTheme } from "@emotion/react"; import PropTypes from "prop-types"; const SkeletonLayout = ({ numBoxes }) => { const theme = useTheme(); return ( {Array.from({ length: numBoxes }).map((_, index) => { const width = `${100 / numBoxes}%`; return ( ); })} ); }; SkeletonLayout.propTypes = { numBoxes: PropTypes.number, }; export default SkeletonLayout;