mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-11 06:33:49 -05:00
14 lines
356 B
TypeScript
14 lines
356 B
TypeScript
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,
|
|
};
|
|
}
|