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