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/client/components/GenericTable/LoadingRow.tsx

25 lines
590 B

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