Martin Berg Alstad 0528645838 Updated dependencies.
Added prettier and formatted.
Fixed bug causing back button to not show at all times.
2024-02-25 00:18:02 +01:00

18 lines
415 B
TypeScript

/* @refresh reload */
import { type Component } from "solid-js"
export const Link: Component<LinkProps> = (
{ to, rel, children, className, id, newTab = true, title } // TODO <A/> throws exception
) => (
<a
href={to}
id={id}
title={title}
rel={`${rel} ${newTab ? "noreferrer" : undefined}`}
target={newTab ? "_blank" : undefined}
class={`link ${className}`}
>
{children}
</a>
)