mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
14 lines
376 B
TypeScript
14 lines
376 B
TypeScript
import type { InheritanceData } from '@discordjs/api-extractor-utils';
|
|
import Link from 'next/link';
|
|
|
|
export function InheritanceText({ data }: { data: InheritanceData }) {
|
|
return (
|
|
<span className="font-semibold">
|
|
{'Inherited from '}
|
|
<Link href={data.path} prefetch={false}>
|
|
<a className="text-blurple font-mono">{data.parentName}</a>
|
|
</Link>
|
|
</span>
|
|
);
|
|
}
|