Files
Trilium/apps/website2/src/components/Section.tsx

19 lines
446 B
TypeScript
Raw Normal View History

2025-09-26 23:06:57 +03:00
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>
)
}