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