var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import { jsx as _jsx } from "react/jsx-runtime";
import { memo, useMemo } from "react";
import ReactMarkdown from "react-markdown";
import Link from "@mui/material/Link";
export var Markdown = memo(function (props) {
    var children = props.children, className = props.className;
    var renderers = useMemo(function () { return ({
        "link": function (props) { return (_jsx(Link, __assign({ underline: "hover", href: props.href }, { children: props.children }))); },
    }); }, []);
    return (_jsx(ReactMarkdown, __assign({ className: className, renderers: renderers }, { children: children })));
});
//# sourceMappingURL=Markdown.js.map