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/components/AppRoot.js

18 lines
552 B

import React from 'react';
import { useSubscription } from 'use-subscription';
import MeteorProvider from '../providers/MeteorProvider';
import { portalsSubscription } from '../reactAdapters';
import BannerRegion from '../views/banners/BannerRegion';
import PortalWrapper from './PortalWrapper';
const AppRoot = () => {
const portals = useSubscription(portalsSubscription);
return <MeteorProvider>
<BannerRegion />
{portals.map(({ key, portal }) => <PortalWrapper key={key} portal={portal} />)}
</MeteorProvider>;
};
export default AppRoot;