mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
docs: guide setup (#10862)
This commit is contained in:
13
apps/guide/src/mdx-components.tsx
Normal file
13
apps/guide/src/mdx-components.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Popup, PopupContent, PopupTrigger } from 'fumadocs-twoslash/ui';
|
||||
import defaultMdxComponents from 'fumadocs-ui/mdx';
|
||||
import type { MDXComponents } from 'mdx/types';
|
||||
|
||||
export function getMDXComponents(components?: MDXComponents): MDXComponents {
|
||||
return {
|
||||
...defaultMdxComponents,
|
||||
Popup,
|
||||
PopupContent,
|
||||
PopupTrigger,
|
||||
...components,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user