mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Closes https://github.com/discordjs/discord.js/issues/8920 Closes https://github.com/discordjs/discord.js/issues/8997
19 lines
561 B
TypeScript
19 lines
561 B
TypeScript
import type { ApiDeclaredItem, ApiItemContainerMixin } from '@microsoft/api-extractor-model';
|
|
import { SyntaxHighlighter } from '../SyntaxHighlighter';
|
|
import { Header } from './Header';
|
|
import { SummarySection } from './section/SummarySection';
|
|
|
|
export interface ObjectHeaderProps {
|
|
item: ApiDeclaredItem & ApiItemContainerMixin;
|
|
}
|
|
|
|
export function ObjectHeader({ item }: ObjectHeaderProps) {
|
|
return (
|
|
<>
|
|
<Header kind={item.kind} name={item.displayName} />
|
|
<SyntaxHighlighter code={item.excerpt.text} />
|
|
<SummarySection item={item} />
|
|
</>
|
|
);
|
|
}
|