sendou.ink/app/components/Section.tsx
2022-08-11 23:21:15 +03:00

17 lines
290 B
TypeScript

export function Section({
title,
children,
className,
}: {
title?: string;
children: React.ReactNode;
className?: string;
}) {
return (
<section className="section">
{title && <h2>{title}</h2>}
<div className={className}>{children}</div>
</section>
);
}