Update mdx-components.tsx

This commit is contained in:
kleap-admin 2026-01-16 15:56:52 +00:00
parent c125a730fb
commit b32c6bc031
1 changed files with 11 additions and 0 deletions

11
mdx-components.tsx Normal file
View File

@ -0,0 +1,11 @@
'use client'
import { type MDXComponents } from "mdx/types";
import Image, { type ImageProps } from "next/image";
export function useMDXComponents(components: MDXComponents) {
return {
...components,
Image: (props: ImageProps) => <Image {...props} />,
};
}