mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 08:03:30 +01:00
18 lines
538 B
TypeScript
18 lines
538 B
TypeScript
import type { ApiDeclaredItem } from '@discordjs/api-extractor-model';
|
|
import { ItemLink } from './ItemLink';
|
|
import { resolveItemURI } from './documentation/util';
|
|
|
|
export function InheritanceText({ parent }: { readonly parent: ApiDeclaredItem }) {
|
|
return (
|
|
<span className="font-semibold">
|
|
Inherited from{' '}
|
|
<ItemLink
|
|
className="rounded text-blurple font-mono outline-none focus:ring focus:ring-width-2 focus:ring-blurple"
|
|
itemURI={resolveItemURI(parent)}
|
|
>
|
|
{parent.displayName}
|
|
</ItemLink>
|
|
</span>
|
|
);
|
|
}
|