feat(website): add icons for donate buttons

This commit is contained in:
Elian Doran
2025-09-27 12:14:16 +03:00
parent 55c70b404c
commit 65dae511e5
9 changed files with 85 additions and 13 deletions

View File

@@ -0,0 +1,23 @@
import { ComponentChildren } from "preact";
import Icon from "./Icon";
import "./Button.css";
interface ButtonProps {
href?: string;
iconSvg?: string;
text: ComponentChildren;
openExternally?: boolean;
}
export default function Button({ href, iconSvg, openExternally, text }: ButtonProps) {
return (
<a
className="button"
href={href}
target={openExternally ? "_blank" : undefined}
>
{iconSvg && <><Icon svg={iconSvg} />{" "}</>}
{text}
</a>
)
}