RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/views/admin/federationDashboard/FederationDashboardPage.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import { Box } from '@rocket.chat/fuselage';
import { useTranslation } from '@rocket.chat/ui-contexts';
import type { ReactElement } from 'react';
import React from 'react';

import { Page, PageHeader, PageScrollableContentWithShadow } from '../../../components/Page';
import OverviewSection from './OverviewSection';
import ServersSection from './ServersSection';

function FederationDashboardPage(): ReactElement {
    const t = useTranslation();

    return (
        <Page>
            <PageHeader title={t('Federation')} />
            <PageScrollableContentWithShadow>
                <Box margin={24}>
                    <OverviewSection />
                    <ServersSection />
                </Box>
            </PageScrollableContentWithShadow>
        </Page>
    );
}

export default FederationDashboardPage;