import React, { forwardRef } from 'react' import NextLink from 'next/link' interface NextComposedProps { as?: string href: string prefetch: boolean } export const NextComposed = forwardRef(function Link( { as, href, ...other }: NextComposedProps, ref?: React.Ref ) { return ( ) }) const NextComposedPreFetch = forwardRef(function Link( { as, href, ...other }: NextComposedProps, ref: React.Ref ) { return }) export function MNLink({ activeClassName = 'active', innerRef, className = '', as: asValue, href, shouldPrefetch, ...extra }: any) { const cname = `text-base hover:underline${className ? ` ${className}` : ''}` if (/http|https/.test(href)) { return } if (shouldPrefetch) { return ( ) } return ( ) } export const Link = forwardRef(function Link(props: any, ref: any) { return }) export const LinkPrefetch = forwardRef(function Link(props: any, ref: any) { return })