mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-08-10 23:08:45 +00:00
17 lines
501 B
TypeScript
17 lines
501 B
TypeScript
import { useMDXComponents as getThemeComponents } from "nextra-theme-docs"; // nextra-theme-blog or your custom theme
|
|
|
|
import { LocalizedCards } from "@/components/docs/localized-cards";
|
|
import { LocalizedDocsLink } from "@/components/docs/localized-mdx-components";
|
|
|
|
// Get the default MDX components
|
|
const themeComponents = getThemeComponents();
|
|
|
|
// Merge components
|
|
export function useMDXComponents() {
|
|
return {
|
|
...themeComponents,
|
|
a: LocalizedDocsLink,
|
|
Cards: LocalizedCards,
|
|
};
|
|
}
|