feat(react/settings): port change password

This commit is contained in:
Elian Doran
2025-08-15 14:18:59 +03:00
parent fb559d66fe
commit c02ed17ebc
8 changed files with 132 additions and 134 deletions

View File

@@ -0,0 +1,17 @@
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>
)
}