mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 22:35:50 +01:00
18 lines
372 B
TypeScript
18 lines
372 B
TypeScript
|
|
import { ComponentChildren } from "preact";
|
||
|
|
|
||
|
|
interface CardProps {
|
||
|
|
title: string;
|
||
|
|
children: ComponentChildren;
|
||
|
|
}
|
||
|
|
|
||
|
|
export default function Card({ title, children }: CardProps) {
|
||
|
|
return (
|
||
|
|
<div className="card">
|
||
|
|
<p>
|
||
|
|
<span class="text-big">{title}</span><br />
|
||
|
|
{children}
|
||
|
|
</p>
|
||
|
|
</div>
|
||
|
|
)
|
||
|
|
}
|