i forgot
This commit is contained in:
parent
30f2b4714d
commit
0c9f7a7822
21 changed files with 1868 additions and 1839 deletions
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue