import ReactMarkdown from "react-markdown";
import remarkGfm from "remark-gfm";

export function RichText({ value, className = "" }: { value: string; className?: string }) {
  return <div className={`richText ${className}`.trim()}>
    <ReactMarkdown remarkPlugins={[remarkGfm]} skipHtml>{value}</ReactMarkdown>
  </div>;
}
