mirror of https://github.com/almqv/wych.dev
parent
cbe31bbac8
commit
bae9d2d415
@ -0,0 +1,30 @@ |
||||
import { cn } from "@/lib/utils"; |
||||
import Link from "next/link"; |
||||
|
||||
type ILinkProps = { |
||||
href: string; |
||||
className?: string; |
||||
children?: React.ReactNode; |
||||
} & React.ComponentPropsWithoutRef<"a">; |
||||
|
||||
const ILink: React.FC<ILinkProps> = ({ |
||||
href, |
||||
className, |
||||
children, |
||||
...props |
||||
}) => { |
||||
return ( |
||||
<Link |
||||
href={href} |
||||
className={cn( |
||||
"transition-colors text-accent-foreground hover:text-accent-foreground/80", |
||||
className, |
||||
)} |
||||
{...props} |
||||
> |
||||
{children} |
||||
</Link> |
||||
); |
||||
}; |
||||
|
||||
export default ILink; |
Loading…
Reference in new issue