mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-13 14:31:10 -05:00
18 lines
352 B
TypeScript
18 lines
352 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 ? "100ch" : "75ch"} {...props}>
|
|
{children}
|
|
</Container>
|
|
);
|
|
export default MyContainer;
|