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