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

14 lines
415 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-04 05:04:59 +00:00
export const Link = ({children, href, disabled = false, nextProps = {}, bluelibProps = {}}) => {
2022-02-03 18:47:06 +00:00
return (
<NextLink href={href} passHref={true} {...nextProps}>
2022-02-04 05:04:59 +00:00
<BluelibLink disabled={disabled} {...bluelibProps}>
2022-02-03 18:47:06 +00:00
{children}
</BluelibLink>
</NextLink>
)
}