Update mdx-components.tsx

This commit is contained in:
kleap-admin 2026-01-15 13:03:53 +00:00
parent 3174ca94c7
commit 51d3b9ad73
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} />,
};
}