import Link, { LinkProps } from 'next/link' import React from 'react' import { chakra, HStack, TextProps } from '@chakra-ui/react' import { ExternalLinkIcon } from 'assets/icons/ExternalLinkIcon' type TextLinkProps = LinkProps & TextProps & { isExternal?: boolean } export const TextLink = ({ children, href, shallow, replace, scroll, prefetch, isExternal, ...textProps }: TextLinkProps) => ( {isExternal ? ( {children} ) : ( children )} )