feature/tauri-js-rs
tsx 29 lines 654 Bytes
Raw
1 export function ExternalLink({
2 href,
3 children
4 }: {
5 href: string
6 children: React.ReactNode
7 }) {
8 return (
9 <a
10 href={href}
11 target="_blank"
12 className="inline-flex flex-1 justify-center gap-1 leading-4 hover:underline"
13 >
14 <span>{children}</span>
15 <svg
16 aria-hidden="true"
17 height="7"
18 viewBox="0 0 6 6"
19 width="7"
20 className="opacity-70"
21 >
22 <path
23 d="M1.25215 5.54731L0.622742 4.9179L3.78169 1.75597H1.3834L1.38936 0.890915H5.27615V4.78069H4.40513L4.41109 2.38538L1.25215 5.54731Z"
24 fill="currentColor"
25 ></path>
26 </svg>
27 </a>
28 )
29 }