mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-13 07:33:48 -05:00
V3
Many many many changes, honestly just read the release notes
This commit is contained in:
13
docs/src/mdx-components.ts
Normal file
13
docs/src/mdx-components.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { useMDXComponents as getThemeComponents } from "nextra-theme-docs";
|
||||
import { MDXComponents } from "nextra/mdx-components";
|
||||
|
||||
// Get the default MDX components
|
||||
const themeComponents = getThemeComponents();
|
||||
|
||||
// Merge components
|
||||
export function useMDXComponents(components: MDXComponents) {
|
||||
return {
|
||||
...themeComponents,
|
||||
...components,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user