"use client"; import ReactMarkdown from "react-markdown"; import remarkGfm from "remark-gfm"; interface MarkdownContentProps { content: string; } export function MarkdownContent({ content }: MarkdownContentProps) { return (
{ if (type === "checkbox") { return ( ); } return ; }, // Custom code block rendering code: ({ className, children, ...props }) => { const isInline = !className; if (isInline) { return ( {children} ); } return ( {children} ); }, }} > {content}
); }