sendou.ink/components/common/MyContainer.tsx
Kalle (Sendou) 6153bfb968 fixes #310
2021-03-28 02:15:46 +02:00

18 lines
353 B
TypeScript

import { Container, ContainerProps } from "@chakra-ui/react";
interface Props {
children: React.ReactNode;
wide?: boolean;
}
const MyContainer: React.FC<Props & ContainerProps> = ({
children,
wide = false,
...props
}) => (
<Container maxW={wide ? "64rem" : "48rem"} {...props}>
{children}
</Container>
);
export default MyContainer;