feature/branding
tsx 16 lines 297 Bytes
Raw
1 import Image from "next/image"
2 import { useMDXComponent } from "next-contentlayer2/hooks"
3
4 const components = {
5 Image,
6 }
7
8 interface MdxProps {
9 code: string
10 }
11
12 export function Mdx({ code }: MdxProps) {
13 const Component = useMDXComponent(code)
14
15 return <Component components={components} />
16 }