diff options
Diffstat (limited to 'modern/src/common')
-rw-r--r-- | modern/src/common/components/TableShimmer.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modern/src/common/components/TableShimmer.js b/modern/src/common/components/TableShimmer.js new file mode 100644 index 00000000..3208551f --- /dev/null +++ b/modern/src/common/components/TableShimmer.js @@ -0,0 +1,14 @@ +import React from 'react'; +import { Skeleton, TableCell, TableRow } from '@mui/material'; + +const TableShimmer = ({ columns }) => [...Array(3)].map(() => ( + <TableRow> + {[...Array(columns)].map(() => ( + <TableCell> + <Skeleton /> + </TableCell> + ))} + </TableRow> +)); + +export default TableShimmer; |