729e6ab287
- Auto-generated sidebar from file structure - Built-in search and TOC - MDX native support with frontmatter - Removed hand-written Sidebar component - Docs now at /docs/* route (Landing/Blocks/Create/Examples unchanged) - Content in content/docs/ as MDX files
10 lines
244 B
TypeScript
10 lines
244 B
TypeScript
import type { MDXComponents } from 'mdx/types';
|
|
import defaultMdxComponents from 'fumadocs-ui/mdx';
|
|
|
|
export function useMDXComponents(components: MDXComponents): MDXComponents {
|
|
return {
|
|
...defaultMdxComponents,
|
|
...components,
|
|
};
|
|
}
|