mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 05:56:59 +00:00
20 lines
401 B
TypeScript
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
|