aboutsummaryrefslogtreecommitdiff
path: root/src/components/ExternalLink.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ExternalLink.js')
-rw-r--r--src/components/ExternalLink.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/ExternalLink.js b/src/components/ExternalLink.js
new file mode 100644
index 00000000..82c87300
--- /dev/null
+++ b/src/components/ExternalLink.js
@@ -0,0 +1,11 @@
+import React from 'react';
+//import styles from './ExternalLink.module.css';
+import ExternalLinkIcon from '@theme/Icon/ExternalLink';
+
+export default function ExternalLink({children, href}) {
+ return (
+ <a href={href} rel={"noopener noreferrer"} target={"_blank"}>
+ {children} <ExternalLinkIcon />
+ </a>
+ );
+} \ No newline at end of file