mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
17 lines
440 B
TypeScript
17 lines
440 B
TypeScript
import type { InheritanceData } from '@discordjs/api-extractor-utils';
|
|
import { Anchor, Text } from '@mantine/core';
|
|
import Link from 'next/link';
|
|
|
|
export function InheritanceText({ data }: { data: InheritanceData }) {
|
|
return (
|
|
<Text weight={600}>
|
|
{'Inherited from '}
|
|
<Link href={data.path} passHref prefetch={false}>
|
|
<Anchor component="a" className="font-mono">
|
|
{data.parentName}
|
|
</Anchor>
|
|
</Link>
|
|
</Text>
|
|
);
|
|
}
|