mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore: move website and guide out of packages
This commit is contained in:
15
apps/website/src/components/InheritanceText.tsx
Normal file
15
apps/website/src/components/InheritanceText.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { InheritanceData } from '@discordjs/api-extractor-utils';
|
||||
import Link from 'next/link';
|
||||
|
||||
export function InheritanceText({ data }: { data: InheritanceData }) {
|
||||
return (
|
||||
<span className="font-semibold">
|
||||
Inherited from{' '}
|
||||
<Link href={data.path} prefetch={false}>
|
||||
<a className="text-blurple focus:ring-width-2 focus:ring-blurple rounded font-mono outline-0 focus:ring">
|
||||
{data.parentName}
|
||||
</a>
|
||||
</Link>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user