mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
18 lines
558 B
TypeScript
18 lines
558 B
TypeScript
import { DocContainer } from '../DocContainer';
|
|
import { ParametersSection } from '../Sections';
|
|
import type { DocFunction } from '~/DocModel/DocFunction';
|
|
|
|
export function Function({ data }: { data: ReturnType<DocFunction['toJSON']> }) {
|
|
return (
|
|
<DocContainer
|
|
name={`${data.name}${data.overloadIndex && data.overloadIndex > 1 ? ` (${data.overloadIndex})` : ''}`}
|
|
kind={data.kind}
|
|
excerpt={data.excerpt}
|
|
summary={data.summary}
|
|
typeParams={data.typeParameterData}
|
|
>
|
|
<ParametersSection data={data.parameters} />
|
|
</DocContainer>
|
|
);
|
|
}
|