Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / pass / components / Layout / Table / TableRowLoading.tsx
blob6761d5ac2ca8a535dbb445af78d3ce3da6b8b4b2
1 import type { FC } from 'react';
3 import { TableCell, TableRow } from '@proton/components';
5 type Props = { rows: number; cells: number };
7 export const TableRowLoading: FC<Props> = ({ rows, cells }) =>
8     Array.from({ length: rows }).map((_, i) => (
9         <TableRow key={`table-row-loading-${i}`}>
10             {Array.from({ length: cells }).map((_, j) => (
11                 <TableCell key={`table-cell-loading-${j}`}>
12                     <div className="w-full pass-skeleton pass-skeleton--table-cell " />
13                 </TableCell>
14             ))}
15         </TableRow>
16     ));