mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-03 17:40:07 +00:00
17 lines
422 B
TypeScript
17 lines
422 B
TypeScript
import { Anchor, Text } from '@mantine/core';
|
|
import Link from 'next/link';
|
|
import type { InheritanceData } from '~/DocModel/ApiNodeJSONEncoder';
|
|
|
|
export function InheritanceText({ data }: { data: InheritanceData }) {
|
|
return (
|
|
<Text weight={600}>
|
|
{'Inherited from '}
|
|
<Link href={data.path} passHref>
|
|
<Anchor component="a" className="font-mono">
|
|
{data.parentName}
|
|
</Anchor>
|
|
</Link>
|
|
</Text>
|
|
);
|
|
}
|