Files
discord.js/packages/website/src/components/InheritanceText.tsx
2022-08-29 21:41:51 +02:00

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>
);
}