mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 23:46:58 +00:00
12 lines
260 B
TypeScript
12 lines
260 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;
|