go-ethereum/src/components/layouts/Layout.tsx
2022-10-09 14:13:04 -06:00

19 lines
397 B
TypeScript

import { Container } from '@chakra-ui/react';
import { FC } from 'react';
import { Footer } from './Footer'
interface Props {
children?: React.ReactNode;
}
// TODO: if mobile, getMobileLayout, else getDesktopLayout
export const Layout: FC<Props> = ({ children }) => {
return (
<Container maxW={{ sm: 'container.sm' }} my={7}>
{children}
<Footer />
</Container>
);
};