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/views/root/AppLayout.tsx

25 lines
670 B

import React, { FC, Fragment, Suspense } from 'react';
import { useSubscription } from 'use-subscription';
import { appLayout } from '../../lib/appLayout';
import { blazePortals } from '../../lib/portals/blazePortals';
import PageLoading from './PageLoading';
import { useTooltipHandling } from './useTooltipHandling';
const AppLayout: FC = () => {
useTooltipHandling();
const layout = useSubscription(appLayout);
const portals = useSubscription(blazePortals);
return (
<>
<Suspense fallback={<PageLoading />}>{layout}</Suspense>
{portals.map(({ key, node }) => (
<Fragment key={key} children={node} />
))}
</>
);
};
export default AppLayout;