import type { TokenDocumentation } from '@discordjs/api-extractor-utils'; import { Anchor, Text } from '@mantine/core'; import Link from 'next/link'; export function HyperlinkedText({ tokens }: { tokens: TokenDocumentation[] }) { return ( <> {tokens.map((token, idx) => { if (token.path) { return ( {token.text} ); } return ( {token.text} ); })} ); }