refactor: website components (#8600)

This commit is contained in:
Noel
2022-09-06 19:48:33 +02:00
committed by GitHub
parent f3ce4a75d0
commit c3341570d9
55 changed files with 1910 additions and 2673 deletions

View File

@@ -1,16 +1,13 @@
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}>
<span className="font-semibold">
{'Inherited from '}
<Link href={data.path} passHref prefetch={false}>
<Anchor component="a" className="font-mono">
{data.parentName}
</Anchor>
<Link href={data.path} prefetch={false}>
<a className="text-blurple font-mono">{data.parentName}</a>
</Link>
</Text>
</span>
);
}