mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 15:55:52 +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}
|
||
|
|
/>;
|
||
|
|
}
|