mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 19:19:03 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			291 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			291 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| interface ActionButtonProps {
 | |
|     text: string;
 | |
|     icon: string;
 | |
|     onClick?: () => void;
 | |
| }
 | |
| 
 | |
| export default function ActionButton({ text, icon, onClick }: ActionButtonProps) {
 | |
|     return <button
 | |
|         class={`icon-action ${icon}`}
 | |
|         title={text}
 | |
|         onClick={onClick}
 | |
|     />;
 | |
| } | 
