Files
discord.js/apps/website/src/components/InheritanceNode.tsx
2025-04-10 22:02:37 +02:00

21 lines
449 B
TypeScript

import { ExcerptNode } from './ExcerptNode';
export async function InheritanceNode({
text,
node,
version,
}: {
readonly node: any;
readonly text: string;
readonly version: string;
}) {
return (
<div>
<h2 className="inline-block min-w-min text-sm text-neutral-500 italic dark:text-neutral-400">{text}</h2>{' '}
<span className="font-mono text-sm break-all">
<ExcerptNode node={node} version={version} />
</span>
</div>
);
}