mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 07:08:55 +02:00
19 lines
446 B
TypeScript
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>
|
|
)
|
|
}
|