mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +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>
 | |
|     )
 | |
| } |