forked from crowetic/commerce
* Updated log * Updates to root * Updates to pnpm * successfully moved to pnpm * type issue * Local as the default provider * Upgrade dependencies * Revert to local * Upgrade React * Update node-fetch deps * Fix types * Ignore warnings * Fix missing dependency * Update pnpm-lock.yaml * Add missing @types/cookie * Upgrade dependencies * Fix missing dependencies * Update README.md Co-authored-by: Bel Curcio <curciobel@gmail.com>
16 lines
299 B
TypeScript
16 lines
299 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}>
|
|
<a {...props}>{children}</a>
|
|
</NextLink>
|
|
)
|
|
}
|
|
|
|
export default Link
|