diff --git a/packages/gitbook/src/components/DocumentView/InlineLink.tsx b/packages/gitbook/src/components/DocumentView/InlineLink.tsx index f7d08fbbb..fdd3b8134 100644 --- a/packages/gitbook/src/components/DocumentView/InlineLink.tsx +++ b/packages/gitbook/src/components/DocumentView/InlineLink.tsx @@ -1,10 +1,8 @@ import { type DocumentInlineLink, SiteInsightsLinkPosition } from '@gitbook/api'; import { resolveContentRef } from '@/lib/references'; -import { Icon } from '@gitbook/icons'; import { StyledLink } from '../primitives'; import type { InlineProps } from './Inline'; -import { InlineLinkTooltip } from './InlineLinkTooltip'; import { renderInlines } from './Inlines'; export async function InlineLink(props: InlineProps) { @@ -29,33 +27,24 @@ export async function InlineLink(props: InlineProps) { ); } - const isExternal = inline.data.ref.kind === 'url'; return ( - - - {renderInlines({ - context, - document, - nodes: inline.nodes, - ancestorInlines: [...ancestorInlines, inline], - })} - {isExternal ? ( - - ) : null} - - + + {renderInlines({ + context, + document, + nodes: inline.nodes, + ancestorInlines: [...ancestorInlines, inline], + })} + ); }