1
Fork 0
mirror of https://github.com/Steffo99/unisteffo.git synced 2024-11-21 23:44:22 +00:00
triennale-appunti-steffo/components/link.jsx

14 lines
377 B
React
Raw Normal View History

2022-02-03 18:47:06 +00:00
import NextLink from "next/link"
import { Anchor as BluelibLink } from "@steffo/bluelib-react"
2022-02-04 01:14:51 +00:00
2022-02-03 18:47:06 +00:00
export const Link = ({children, href, nextProps = {}, bluelibProps = {}}) => {
return (
<NextLink href={href} passHref={true} {...nextProps}>
<BluelibLink {...bluelibProps}>
{children}
</BluelibLink>
</NextLink>
)
}