-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPageContainer.tsx
More file actions
36 lines (34 loc) · 876 Bytes
/
PageContainer.tsx
File metadata and controls
36 lines (34 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import type { JSX } from 'react';
import React from 'react';
import { Container, Typography } from '@mui/material';
import type { SharedChildrenProps } from '@shared/props/SharedChildrenProps';
type PageContainerProps = {
title: string;
} & SharedChildrenProps;
export default function PageContainer(props: PageContainerProps): JSX.Element {
return (
<Container
sx={{
height: '100%',
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
}}
>
<Container
sx={{
padding: '2rem',
display: 'flex',
flexDirection: 'column',
gap: '3rem',
}}
>
<Typography variant={'h3'} textAlign={'left'}>
{props.title}
</Typography>
{props.children}
</Container>
</Container>
);
}