mirror of https://github.com/jetkvm/kvm.git
30 lines
445 B
TypeScript
30 lines
445 B
TypeScript
import React from "react";
|
|
|
|
import { cx } from "@/cva.config";
|
|
|
|
export default function ExtLink({
|
|
className,
|
|
href,
|
|
id,
|
|
target,
|
|
children,
|
|
}: {
|
|
className?: string;
|
|
href: string;
|
|
id?: string;
|
|
target?: string;
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<a
|
|
className={cx(className)}
|
|
target={target ?? "_blank"}
|
|
id={id}
|
|
rel="noopener noreferrer"
|
|
href={href}
|
|
>
|
|
{children}
|
|
</a>
|
|
);
|
|
}
|