1
0
mirror of https://github.com/vercel/commerce.git synced 2025-08-09 02:11:24 +00:00
Files
.vscode
assets
components
auth
cart
checkout
common
icons
product
ui
Button
Collapse
Container
Grid
Hero
Input
Link
Link.tsx
index.ts
LoadingDots
Logo
Marquee
Modal
Quantity
Rating
Sidebar
Skeleton
Text
README.md
context.tsx
index.ts
wishlist
config
framework
lib
pages
public
.editorconfig
.env.template
.gitignore
.prettierignore
.prettierrc
README.md
codegen.json
commerce.config.json
global.d.ts
license.md
next-env.d.ts
next.config.js
package.json
postcss.config.js
tailwind.config.js
tsconfig.json
yarn.lock
commerce/components/ui/Link/Link.tsx

12 lines
256 B
TypeScript

import NextLink, { LinkProps as NextLinkProps } from 'next/link'
const Link: React.FC<NextLinkProps> = ({ href, children, ...props }) => {
return (
<NextLink href={href}>
<a {...props}>{children}</a>
</NextLink>
)
}
export default Link