import { PropsWithChildren } from 'react' import NextLink from 'next/link' import { LinkProps as NextLinkProps } from 'next/dist/client/link' import { Link as ChakraLink, LinkProps as ChakraLinkProps, } from '@chakra-ui/react' import React from 'react' export type NextChakraLinkProps = PropsWithChildren< NextLinkProps & Omit > export const NextChakraLink = React.forwardRef< HTMLAnchorElement, NextChakraLinkProps >( ( { href, replace, scroll, shallow, prefetch, children, locale, ...chakraProps }, ref ) => { return ( {children} ) } )