sendou.ink/components/common/MyContainer.tsx
2020-12-18 23:17:10 +02:00

12 lines
284 B
TypeScript

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