mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-12 13:49:22 -05:00
12 lines
284 B
TypeScript
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;
|