1
0
mirror of https://github.com/vercel/commerce.git synced 2025-08-15 05:11:22 +00:00
Files
commerce/site/components/ui/Link/Link.tsx
2022-07-08 15:15:21 +03:00

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