mirror of
https://github.com/Steffo99/unisteffo.git
synced 2025-02-16 15:53:58 +00:00
14 lines
399 B
TypeScript
14 lines
399 B
TypeScript
|
import NextLink from "next/link"
|
||
|
import { Anchor as BluelibLink } from "@steffo/bluelib-react"
|
||
|
|
||
|
// passHref by default
|
||
|
export const Link = ({children, href, nextProps = {}, bluelibProps = {}}) => {
|
||
|
return (
|
||
|
<NextLink href={href} passHref={true} {...nextProps}>
|
||
|
<BluelibLink {...bluelibProps}>
|
||
|
{children}
|
||
|
</BluelibLink>
|
||
|
</NextLink>
|
||
|
)
|
||
|
}
|