sendou.ink/app/components/Main.tsx
2022-07-30 11:55:57 +03:00

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>
);