/* eslint-disable jsx-a11y/anchor-has-content */ import Link from 'next/link' import { AnchorHTMLAttributes, DetailedHTMLProps } from 'react' const CustomLink = async ({ href, ...rest }: DetailedHTMLProps, HTMLAnchorElement>) => { const isInternalLink = href && href.startsWith('/') const isAnchorLink = href && href.startsWith('#') if (isInternalLink) { // @ts-ignore return } if (isAnchorLink) { return } return } export default CustomLink