forked from crowetic/commerce
16 lines
292 B
TypeScript
16 lines
292 B
TypeScript
import NextLink, { LinkProps as NextLinkProps } from 'next/link'
|
|
|
|
const Link: React.FC<
|
|
NextLinkProps & {
|
|
children?: React.ReactNode
|
|
}
|
|
> = ({ href, children, ...props }) => {
|
|
return (
|
|
<NextLink href={href} {...props}>
|
|
{children}
|
|
</NextLink>
|
|
)
|
|
}
|
|
|
|
export default Link
|