mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-18 13:10:29 -05:00
17 lines
290 B
TypeScript
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>
|
|
);
|
|
}
|