diff options
| author | schererleander <leander@schererleander.de> | 2025-06-25 16:31:41 +0200 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2025-06-25 16:31:41 +0200 |
| commit | d7ad157ef1a3010cb482220b0c1a544eb1ef9f15 (patch) | |
| tree | dbc924df023ccf9342d8a20c68517cc465a82048 /src/components/LinkWithIcon.tsx | |
| parent | 66a5fec4403d0b48a70ca9c16807d88ee6b797ee (diff) | |
remove extra icon class
Diffstat (limited to 'src/components/LinkWithIcon.tsx')
| -rw-r--r-- | src/components/LinkWithIcon.tsx | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/components/LinkWithIcon.tsx b/src/components/LinkWithIcon.tsx deleted file mode 100644 index e7fcbb8..0000000 --- a/src/components/LinkWithIcon.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import ExternalLinkIcon from "./ExternalLink"; - -export default function LinkWithIcon({ - href, - children, - className = 'inline-flex items-center gap-1 underline text-blue-400', - target = '_blank', -}: { - href: string; - children?: React.ReactNode; - className?: string; - target?: React.HTMLAttributeAnchorTarget; -}) { - return ( - <a - href={href} - target={target} - rel={target === '_blank' ? 'noopener noreferrer' : undefined} - className={className} - > - {children} - <ExternalLinkIcon /> - </a> - ); -}
\ No newline at end of file |
