/* eslint-disable react-hooks/static-components */
'use client'

import { useMDXComponent } from 'next-contentlayer2/hooks'

interface MDXContentProps {
  code: string
}

export function MDXContent({ code }: MDXContentProps) {
  const Component = useMDXComponent(code)
  return <Component />
}
