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/MainLayout/MainLayout.tsx

17 lines
513 B

import React, { ReactElement, useMemo } from 'react';
import BlazeTemplate from '../BlazeTemplate';
import AuthenticationCheck from './AuthenticationCheck';
import Preload from './Preload';
type MainLayoutProps = {
center?: string;
} & Record<string, unknown>;
const MainLayout = ({ center }: MainLayoutProps): ReactElement => (
<Preload>
<AuthenticationCheck>{useMemo(() => (center ? <BlazeTemplate template={center} /> : null), [center])}</AuthenticationCheck>
</Preload>
);
export default MainLayout;