Files
Trilium/apps/client/src/widgets/react/ActionButton.tsx

14 lines
366 B
TypeScript
Raw Normal View History

interface ActionButtonProps {
text: string;
icon: string;
className?: string;
2025-08-23 19:48:01 +03:00
onClick?: (e: MouseEvent) => void;
}
export default function ActionButton({ text, icon, className, onClick }: ActionButtonProps) {
return <button
class={`icon-action ${icon} ${className ?? ""}`}
title={text}
onClick={onClick}
/>;
}