mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
20 lines
546 B
TypeScript
20 lines
546 B
TypeScript
import { ImageZoom } from "fumadocs-ui/components/image-zoom";
|
|
import defaultComponents from "fumadocs-ui/mdx";
|
|
import type { MDXComponents } from "mdx/types";
|
|
|
|
export function useMDXComponents(components: MDXComponents): MDXComponents {
|
|
return {
|
|
...defaultComponents,
|
|
...components,
|
|
ImageZoom,
|
|
p: ({ children }) => (
|
|
<p className="text-[#3E4342] dark:text-muted-foreground">{children}</p>
|
|
),
|
|
li: ({ children, id }) => (
|
|
<li {...{ id }} className="text-[#3E4342] dark:text-muted-foreground">
|
|
{children}
|
|
</li>
|
|
),
|
|
};
|
|
}
|