Update mdx-components.tsx
This commit is contained in:
parent
3174ca94c7
commit
51d3b9ad73
|
|
@ -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} />,
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue