mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 19:19:03 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			610 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			610 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { CSSProperties } from "preact/compat";
 | |
| import { t } from "../../services/i18n";
 | |
| import { openInAppHelpFromUrl } from "../../services/utils";
 | |
| 
 | |
| interface HelpButtonProps {
 | |
|     className?: string;
 | |
|     helpPage: string;
 | |
|     style?: CSSProperties;
 | |
| }
 | |
| 
 | |
| export default function HelpButton({ className, helpPage, style }: HelpButtonProps) {
 | |
|     return (
 | |
|         <button
 | |
|             class={`${className ?? ""} icon-action bx bx-help-circle`}
 | |
|             type="button"
 | |
|             onClick={() => openInAppHelpFromUrl(helpPage)}
 | |
|             title={t("open-help-page")}
 | |
|             style={style}
 | |
|         />
 | |
|     );
 | |
| } | 
