The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Rocket.Chat/apps/meteor/client/components/GenericTable/GenericTableLoadingRow.tsx

23 lines
606 B

import { Box, Skeleton, TableRow, TableCell } from '@rocket.chat/fuselage';
import type { ReactElement } from 'react';
import React from 'react';
export const GenericTableLoadingRow = ({ cols }: { cols: number }): ReactElement => (
<TableRow>
<TableCell>
<Box display='flex'>
<Skeleton variant='rect' height={40} width={40} />
<Box mi='x8' flexGrow={1}>
<Skeleton width='100%' />
<Skeleton width='100%' />
</Box>
</Box>
</TableCell>
{Array.from({ length: cols - 1 }, (_, i) => (
<TableCell key={i}>
<Skeleton width='100%' />
</TableCell>
))}
</TableRow>
);