2025-09-27 01:42:15 +03:00

19 lines
446 B
TypeScript

import { ComponentChildren } from "preact";
interface SectionProps {
title?: string;
children: ComponentChildren;
className?: string;
}
export default function Section({ className, title, children }: SectionProps) {
return (
<section className={className}>
<div className="content-wrapper">
{title && <h2>{title}</h2>}
{children}
</div>
</section>
)
}