1
0
mirror of https://github.com/vercel/commerce.git synced 2025-06-03 06:46:59 +00:00
2023-05-03 15:16:42 +02:00

20 lines
401 B
TypeScript

'use client'
import { cn } from 'lib/utils'
import NextLink, { LinkProps as NextLinkProps } from 'next/link'
const Link: React.FC<
NextLinkProps & {
children?: React.ReactNode
className?: string
}
> = ({ href, children, className, ...props }) => {
return (
<NextLink className={cn('', className)} href={href} {...props}>
{children}
</NextLink>
)
}
export default Link