fixup! swarm-ui: shared Hint, ActionRow, Toolbar, EmptyState, ExternalLink and ExpandableCard replace per-page copies
This commit is contained in:
parent
2b53fcd742
commit
53ccbcb4b3
1 changed files with 5 additions and 33 deletions
|
|
@ -5,23 +5,15 @@ import type { ComponentChildren } from "preact";
|
|||
|
||||
export function ExternalLink({
|
||||
href,
|
||||
title,
|
||||
class: extraClass,
|
||||
children,
|
||||
}: {
|
||||
href: string;
|
||||
title?: string;
|
||||
class?: string;
|
||||
children: ComponentChildren;
|
||||
}) {
|
||||
return (
|
||||
<a
|
||||
href={href}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
title={title}
|
||||
class={extraClass}
|
||||
>
|
||||
<a href={href} target="_blank" rel="noopener noreferrer" class={extraClass}>
|
||||
{children}
|
||||
</a>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue