import React from 'react'; import { Skeleton, TableCell, TableRow } from '@mui/material'; const TableShimmer = ({ columns, startAction, endAction }) => [...Array(3)].map(() => ( {[...Array(columns)].map((_, i) => { const action = (startAction && i === 0) || (endAction && i === columns - 1); return ( {!action && } ); })} )); export default TableShimmer;