RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/components/GenericTable/GenericTableLoadingTable.tsx

Summary

Maintainability
A
50 mins
Test Coverage
import type { ReactElement } from 'react';
import React from 'react';

import { GenericTableLoadingRow } from './GenericTableLoadingRow';

export const GenericTableLoadingTable = ({ headerCells }: { headerCells: number }): ReactElement => (
    <>
        {Array.from({ length: 10 }, (_, i) => (
            <GenericTableLoadingRow key={i} cols={headerCells} />
        ))}
    </>
);