mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-19 21:50:52 -05:00
24 lines
366 B
TypeScript
24 lines
366 B
TypeScript
import clsx from "clsx";
|
|
import type * as React from "react";
|
|
|
|
export const Main = ({
|
|
children,
|
|
className,
|
|
halfWidth,
|
|
}: {
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
halfWidth?: boolean;
|
|
}) => (
|
|
<main
|
|
className={clsx(
|
|
"layout__main",
|
|
"main",
|
|
{ "half-width": halfWidth },
|
|
className
|
|
)}
|
|
>
|
|
{children}
|
|
</main>
|
|
);
|