42 lines
886 B
TypeScript
Raw Normal View History

import { Box, Flex } from '@chakra-ui/react';
2023-06-28 01:12:17 +00:00
import { Footer } from '../Nav/Footer';
import { Nav } from '../Nav/Nav';
import { ProfileDrawer } from '../Nav/ProfileDrawer';
export const Main = (props) => {
2023-06-28 01:12:17 +00:00
return (
<Flex
sx={{
'*': {
whiteSpace: 'pre-wrap'
}
}}
position="relative"
alignItems="center"
justifyContent="center"
flexDirection="column"
overflow="hidden"
width="100%"
minH="100vh"
maxWidth="100vw"
>
{/* <ProfileDrawer></ProfileDrawer> */}
2023-06-28 01:12:17 +00:00
<Nav />
<Flex
position="relative"
alignItems="center"
justifyContent="center"
flexDirection="column"
overflow="hidden"
width="100%"
minH="100vh"
maxWidth="100vw"
>
{props.children}
</Flex>
<Footer></Footer>
2023-06-28 01:12:17 +00:00
</Flex>
);
};