You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
444 B
21 lines
444 B
import { cn } from "../../../core/utils/cn.ts";
|
|
|
|
export interface LinkProps {
|
|
href: string;
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
export const Link = ({ href, children, className }: LinkProps) => (
|
|
<a
|
|
href={href}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className={cn(
|
|
"font-medium text-slate-900 underline underline-offset-4 dark:text-slate-200",
|
|
className,
|
|
)}
|
|
>
|
|
{children}
|
|
</a>
|
|
);
|
|
|