initial commit
This commit is contained in:
18
src/components/nearle_components/TableLoader.js
Normal file
18
src/components/nearle_components/TableLoader.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from 'react';
|
||||
import { TableRow, TableCell, Skeleton } from '@mui/material';
|
||||
|
||||
export default function TableLoader({ rows = 5, columns = 6, height = 40 }) {
|
||||
return (
|
||||
<>
|
||||
{[...Array(rows)].map((_, rowIndex) => (
|
||||
<TableRow key={rowIndex}>
|
||||
{[...Array(columns)].map((_, colIndex) => (
|
||||
<TableCell key={colIndex}>
|
||||
<Skeleton variant="rectangular" height={height} width={70} animation="wave" />
|
||||
</TableCell>
|
||||
))}
|
||||
</TableRow>
|
||||
))}
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user