33 lines
704 B
TypeScript
33 lines
704 B
TypeScript
import * as React from 'react';
|
|
|
|
import Toolbar from '@mui/material/Toolbar';
|
|
import AppBar from '@mui/material/AppBar';
|
|
import Box from '@mui/material/Box';
|
|
|
|
import Logo from 'components/Logo';
|
|
import Container from 'components/Container';
|
|
|
|
type LayoutProps = {
|
|
children: React.ReactNode;
|
|
};
|
|
|
|
export default function Layout({ children }: LayoutProps): React.ReactElement {
|
|
return (
|
|
<>
|
|
<AppBar>
|
|
<Container maxWidth="lg" disableGutters>
|
|
<Toolbar>
|
|
<Logo />
|
|
</Toolbar>
|
|
</Container>
|
|
</AppBar>
|
|
|
|
<Box sx={{ display: 'flex', flexDirection: 'column', height: '100%' }}>
|
|
<Toolbar />
|
|
|
|
{children}
|
|
</Box>
|
|
</>
|
|
);
|
|
}
|