mirror of
https://github.com/Drop-OSS/drop-website.git
synced 2026-07-01 06:41:59 -04:00
15 lines
410 B
TypeScript
15 lines
410 B
TypeScript
import * as Headless from '@headlessui/react'
|
|
import NextLink, { type LinkProps } from 'next/link'
|
|
import { forwardRef } from 'react'
|
|
|
|
export const Link = forwardRef(function Link(
|
|
props: LinkProps & React.ComponentPropsWithoutRef<'a'>,
|
|
ref: React.ForwardedRef<HTMLAnchorElement>,
|
|
) {
|
|
return (
|
|
<Headless.DataInteractive>
|
|
<NextLink ref={ref} {...props} />
|
|
</Headless.DataInteractive>
|
|
)
|
|
})
|