12 lines
299 B
TypeScript
12 lines
299 B
TypeScript
import { useMDXComponents as getThemeComponents } from "nextra-theme-docs"; // nextra-theme-blog or your custom theme
|
|
|
|
// Get the default MDX components
|
|
const themeComponents = getThemeComponents();
|
|
|
|
// Merge components
|
|
export function useMDXComponents() {
|
|
return {
|
|
...themeComponents,
|
|
};
|
|
}
|