import { MDXRemote } from "next-mdx-remote/rsc";
import { mdxComponents } from "../content-engine/registry";

interface MDXContentProps {
  code: string;
}

export function MDXContent({ code }: MDXContentProps) {
  return <MDXRemote source={code} components={mdxComponents} />;
}
