speed-flowchart-web/src/utils/PageTemplate.tsx

25 lines
650 B
TypeScript

import Container from '@mui/material/Container';
import LocalizationProviderWrapper from './LocalizationProviderWrapper';
import ContextWrapper from './ContextWrapper';
/**
* Wrapps the page with all necessary utils
* @param {{ children: JSX.Element }} props accepts JSX elements to wrap theme in
* @return {JSX.Element}
*/
export default function PageTemplate(props: { children: JSX.Element }) {
const { children } = props;
return (
<ContextWrapper>
<Container
sx={{ marginTop: '50px' }}
className='root-container'
maxWidth='lg'
>
{children}
</Container>
</ContextWrapper>
);
}