forked from zitadel/zitadel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmdx-components.tsx
More file actions
27 lines (25 loc) · 842 Bytes
/
mdx-components.tsx
File metadata and controls
27 lines (25 loc) · 842 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
import defaultMdxComponents from 'fumadocs-ui/mdx';
import type { MDXComponents } from 'mdx/types';
import { APIPage } from '@/components/api-page';
import { TerminologyUpdate } from '@/components/terminology-update';
import { Callout } from 'fumadocs-ui/components/callout';
import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
import { Step, Steps } from 'fumadocs-ui/components/steps';
import Admonition from '@/components/docusaurus/admonition';
import { GithubCodeBlock } from '@/components/github-code-block';
export function useMDXComponents(components?: MDXComponents): MDXComponents {
return {
...defaultMdxComponents,
Callout,
Admonition,
Tab,
Tabs,
Step,
Steps,
APIPage,
TerminologyUpdate,
GithubCodeBlock,
...components,
};
}
export const getMDXComponents = useMDXComponents;