mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 12:09:02 +01:00
17 lines
380 B
TypeScript
17 lines
380 B
TypeScript
import { ComponentChild } from "preact";
|
|
|
|
interface LinkButtonProps {
|
|
onClick: () => void;
|
|
text: ComponentChild;
|
|
}
|
|
|
|
export default function LinkButton({ onClick, text }: LinkButtonProps) {
|
|
return (
|
|
<a class="tn-link" href="javascript:" onClick={(e) => {
|
|
e.preventDefault();
|
|
onClick();
|
|
}}>
|
|
{text}
|
|
</a>
|
|
)
|
|
} |