mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
19 lines
554 B
TypeScript
19 lines
554 B
TypeScript
import type { ApiDeclaredItem } from '@microsoft/api-extractor-model';
|
|
import { SyntaxHighlighter } from '../SyntaxHighlighter';
|
|
import { Header } from './Header';
|
|
import { SummarySection } from './section/SummarySection';
|
|
|
|
export interface ObjectHeaderProps {
|
|
item: ApiDeclaredItem;
|
|
}
|
|
|
|
export function ObjectHeader({ item }: ObjectHeaderProps) {
|
|
return (
|
|
<>
|
|
<Header kind={item.kind} name={item.displayName} sourceURL={item.sourceLocation.fileUrl} />
|
|
<SyntaxHighlighter code={item.excerpt.text} />
|
|
<SummarySection item={item} />
|
|
</>
|
|
);
|
|
}
|