mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
19 lines
323 B
TypeScript
19 lines
323 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>}
|
|
<div className={className}>{children}</div>
|
|
</section>
|
|
);
|
|
}
|