RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/views/admin/import/ImportOperationSummarySkeleton.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import { Skeleton, TableRow, TableCell } from '@rocket.chat/fuselage';
import React from 'react';

type ImportOperationSummarySkeletonProps = {
    small?: boolean;
};

function ImportOperationSummarySkeleton({ small = false }: ImportOperationSummarySkeletonProps) {
    return (
        <TableRow>
            <TableCell>
                <Skeleton />
            </TableCell>
            <TableCell>
                <Skeleton />
            </TableCell>
            {!small && (
                <>
                    <TableCell>
                        <Skeleton />
                    </TableCell>
                    <TableCell>
                        <Skeleton />
                    </TableCell>
                    <TableCell>
                        <Skeleton />
                    </TableCell>
                    <TableCell>
                        <Skeleton />
                    </TableCell>
                    <TableCell>
                        <Skeleton />
                    </TableCell>
                    <TableCell>
                        <Skeleton />
                    </TableCell>
                </>
            )}
        </TableRow>
    );
}

export default ImportOperationSummarySkeleton;