This commit is contained in:
laura 2025-11-01 23:46:32 -03:00
parent 30f2b4714d
commit 0c9f7a7822
Signed by: w
GPG key ID: BCD2117C99E69817
21 changed files with 1868 additions and 1839 deletions

View file

@ -7,18 +7,18 @@ import { HTMLAttributes, JSX } from "preact";
import { LinkIcon } from "./Icon.tsx";
interface LinkProps extends HTMLAttributes<HTMLAnchorElement> {
href: string;
children: JSX.Element | JSX.Element[] | string;
noIcon?: boolean;
href: string;
children: JSX.Element | JSX.Element[] | string;
noIcon?: boolean;
}
export default function Link(
{ children, noIcon = false, ...props }: LinkProps,
{ children, noIcon = false, ...props }: LinkProps,
) {
return (
<a {...props}>
{children}
{!noIcon && <LinkIcon size={16} class="link-icon" />}
</a>
);
return (
<a {...props}>
{children}
{!noIcon && <LinkIcon size={16} class="link-icon" />}
</a>
);
}