1
Fork 0
mirror of https://github.com/Steffo99/unisteffo.git synced 2025-02-16 15:53:58 +00:00
triennale-appunti-steffo/components/compat-next.tsx

14 lines
399 B
TypeScript
Raw Normal View History

2022-02-03 19:47:06 +01:00
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>
)
}