From afdc982863b6cca573f1db58e1795aa8c45fabca Mon Sep 17 00:00:00 2001
From: schererleander <leander@schererleander.de>
Date: Fri, 30 May 2025 01:01:17 +0200
Subject: rewrite site

---
 src/components/LinkWithIcon.tsx | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 src/components/LinkWithIcon.tsx

(limited to 'src/components/LinkWithIcon.tsx')

diff --git a/src/components/LinkWithIcon.tsx b/src/components/LinkWithIcon.tsx
new file mode 100644
index 0000000..0046125
--- /dev/null
+++ b/src/components/LinkWithIcon.tsx
@@ -0,0 +1,25 @@
+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>
+  );
+}
-- 
cgit v1.3.1

