"use client"; import ReactMarkdown, { type Components } from "react-markdown"; import remarkGfm from "remark-gfm"; import styles from "./MarkdownText.module.scss"; interface MarkdownTextProps { content: string; className?: string; } export default function MarkdownText({ content, className, }: MarkdownTextProps) { const components: Components = { h1: ({ ...props }) =>

, h2: ({ ...props }) =>

, h3: ({ ...props }) =>

, h4: ({ ...props }) =>

, h5: ({ ...props }) =>

, h6: ({ ...props }) =>
, p: ({ ...props }) =>

, li: ({ ...props }) =>

  • , strong: ({ ...props }) => , em: ({ ...props }) => , pre: ({ ...props }) =>
    ,
        // @ts-expect-error - inline prop is provided by react-markdown
        code: ({ inline, ...props }) =>
          inline ? (
            
          ) : (
            
          ),
        blockquote: ({ ...props }) => 
    , hr: ({ ...props }) =>
    , a: ({ ...props }) => ( ), }; return (
    {content}
    ); }