RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/views/admin/settings/SettingsSection/SettingsSectionSkeleton.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import { Accordion, Box, FieldGroup, Skeleton } from '@rocket.chat/fuselage';
import type { ReactElement } from 'react';
import React from 'react';

import SettingSkeleton from '../Setting/SettingSkeleton';

function SettingsSectionSkeleton(): ReactElement {
    return (
        <Accordion.Item noncollapsible title={<Skeleton />}>
            <Box is='p' color='hint' fontScale='p2'>
                <Skeleton />
            </Box>

            <FieldGroup>
                {Array.from({ length: 10 }).map((_, i) => (
                    <SettingSkeleton key={i} />
                ))}
            </FieldGroup>
        </Accordion.Item>
    );
}

export default SettingsSectionSkeleton;