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

25 lines
589 B

import { Box } from '@rocket.chat/fuselage';
import React, { useState, ReactElement, ComponentProps } from 'react';
import PageContext from './PageContext';
const Page = (props: ComponentProps<typeof Box>): ReactElement => {
const [border, setBorder] = useState(false);
return (
<PageContext.Provider value={[border, setBorder]}>
<Box
backgroundColor='surface'
is='section'
display='flex'
flexDirection='column'
flexGrow={1}
flexShrink={1}
height='full'
overflow='hidden'
{...props}
/>
</PageContext.Provider>
);
};
export default Page;