// https://github.com/TypeStrong/typedoc-default-themes/blob/master/src/default/partials/member.reference.hbs import type { JSONOutput } from 'typedoc'; import Link from '@docusaurus/Link'; import { useReflection } from '../hooks/useReflection'; import { escapeMdx } from '../utils/helpers'; export interface MemberReferenceProps { reflection: JSONOutput.ReferenceReflection; } export function MemberReference({ reflection }: MemberReferenceProps) { const target = useReflection(reflection.target); let content: React.ReactNode = null; if (!target) { content = ( <> Re-exports {escapeMdx(reflection.name)} > ); } else if (reflection.name === target.name) { content = ( <> Re-exports{' '} {escapeMdx(target.name)} > ); } else { content = ( <> Renames and re-exports{' '} {escapeMdx(target.name)} > ); } return