mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 23:18:59 +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}
|
|
/>;
|
|
} |