Checkpoint

This commit is contained in:
2026-07-26 02:20:45 -03:00
parent f04cbb7e02
commit 0f506ec19e
38 changed files with 1757 additions and 154 deletions
+18
View File
@@ -0,0 +1,18 @@
import defaultMdxComponents from "fumadocs-ui/mdx";
import Image from "next/image";
import type { MDXComponents } from "mdx/types";
export function getMDXComponents(components?: MDXComponents) {
return {
...defaultMdxComponents,
img: (props) => <Image {...(props as any)} />,
...components,
} satisfies MDXComponents;
}
export const useMDXComponents = getMDXComponents;
declare global {
type MDXProvidedComponents = ReturnType<typeof getMDXComponents>;
}