sendou.ink/app/components/Section.tsx

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