// eslint-disable-next-line no-restricted-imports
import NextLink from 'next/link';
import { ComponentProps } from 'react';

type LinkProps = ComponentProps<typeof NextLink>;

const Link = ({ prefetch = false, children, ...props }: LinkProps) => {
  return (
    <NextLink prefetch={prefetch} {...props}>
      {children}
    </NextLink>
  );
};

export default Link;
