import { __rest } from "tslib";
/* eslint-disable react/display-name */
/* eslint-disable react/prop-types */
import * as React from 'react';
import RawMarkdown from 'react-markdown';
import Prism from 'react-syntax-highlighter/dist/esm/prism';
import classNames from '../../utils/classnames';
export default /*#__PURE__*/ function Markdown(_a) {
    var _b;
    var _c = _a.source, source = _c === void 0 ? '' : _c, _d = _a.className, className = _d === void 0 ? '' : _d, props = __rest(_a, ["source", "className"]);
    var contenteditable = props.contenteditable, onInput = props.onInput, onBlur = props.onBlur, style = props.style, id = props.id;
    var LABEL = '88888888888888888888888888';
    return (React.createElement("div", { className: classNames((_b = {
                'weda-ui': true
            },
            _b[className] = className,
            _b)), id: id, style: style, contentEditable: contenteditable, onInput: onInput, onBlur: onBlur },
        React.createElement(RawMarkdown, { source: source, renderers: {
                code: function (_a) {
                    var language = _a.language, _b = _a.value, value = _b === void 0 ? '' : _b;
                    return (
                    /*#__PURE__*/ React.createElement(Prism, { language: language }, value));
                },
            } }),
        LABEL));
}
//# sourceMappingURL=index.js.map