mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 23:18:59 +01:00
14 lines
343 B
TypeScript
14 lines
343 B
TypeScript
import { ComponentChildren } from "preact";
|
|
|
|
interface AdmonitionProps {
|
|
type: "warning" | "note" | "caution";
|
|
children: ComponentChildren;
|
|
}
|
|
|
|
export default function Admonition({ type, children }: AdmonitionProps) {
|
|
return (
|
|
<div className={`admonition ${type}`} role="alert">
|
|
{children}
|
|
</div>
|
|
)
|
|
} |