mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-25 04:37:13 -05:00
19 lines
329 B
TypeScript
19 lines
329 B
TypeScript
import styles from "./Section.module.css";
|
|
|
|
export function Section({
|
|
title,
|
|
children,
|
|
className,
|
|
}: {
|
|
title?: string;
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
}) {
|
|
return (
|
|
<section className={styles.section}>
|
|
{title ? <h2>{title}</h2> : null}
|
|
<div className={className}>{children}</div>
|
|
</section>
|
|
);
|
|
}
|