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.
18 lines
432 B
18 lines
432 B
import { cn } from "@app/core/utils/cn";
|
|
|
|
export interface LinkProps {
|
|
href: string;
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
export const Link = ({ href, children, className }: LinkProps): JSX.Element => (
|
|
<a
|
|
href={href}
|
|
target={"_blank"}
|
|
rel="noopener noreferrer"
|
|
className={cn("font-medium text-slate-900 underline underline-offset-4 dark:text-slate-50", className)}
|
|
>
|
|
{children}
|
|
</a>
|
|
);
|
|
|