mirror of
https://github.com/jetkvm/website.git
synced 2025-09-16 08:38:16 +00:00
29 lines
436 B
TypeScript
29 lines
436 B
TypeScript
import React from "react";
|
|
import clsx from "clsx";
|
|
|
|
export default function ExtLink({
|
|
className,
|
|
href,
|
|
id,
|
|
target,
|
|
children,
|
|
}: {
|
|
className?: string;
|
|
href: string;
|
|
id?: string;
|
|
target?: string;
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<a
|
|
className={clsx(className)}
|
|
target={target ?? "_blank"}
|
|
id={id}
|
|
rel="noopener noreferrer"
|
|
href={href}
|
|
>
|
|
{children}
|
|
</a>
|
|
);
|
|
}
|