-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmdx-components.tsx
More file actions
30 lines (29 loc) · 956 Bytes
/
mdx-components.tsx
File metadata and controls
30 lines (29 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import type { MDXComponents } from 'mdx/types';
import defaultMdxComponents from 'fumadocs-ui/mdx';
import { Steps, Step } from 'fumadocs-ui/components/steps';
import { CopyBlock } from '@/app/(home)/copy-block';
import { Info } from '@/components/info';
import { Warning } from '@/components/warning';
import { Tip } from '@/components/tip';
import { YouTube } from '@/components/youtube';
import { Screenshot } from '@/components/screenshot';
import { ScreenshotsGallery } from '@/components/screenshots-gallery';
import { SystemPrompts } from '@/components/system-prompts';
import { ThemeCarousel } from '@/app/(home)/theme-carousel';
export function getMDXComponents(components?: MDXComponents): MDXComponents {
return {
...defaultMdxComponents,
Steps,
Step,
ShellCommand: CopyBlock,
Info,
Warning,
Tip,
YouTube,
Screenshot,
ScreenshotsGallery,
SystemPrompts,
ThemeCarousel,
...components,
};
}