"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
/* eslint-disable react/display-name */
/* eslint-disable react/prop-types */
var React = (0, tslib_1.__importStar)(require("react"));
var react_markdown_1 = (0, tslib_1.__importDefault)(require("react-markdown"));
var prism_1 = (0, tslib_1.__importDefault)(require("react-syntax-highlighter/dist/esm/prism"));
var classnames_1 = (0, tslib_1.__importDefault)(require("../../utils/classnames"));
function Markdown(_a) {
    var _b;
    var _c = _a.source, source = _c === void 0 ? '' : _c, _d = _a.className, className = _d === void 0 ? '' : _d, props = (0, tslib_1.__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: (0, classnames_1.default)((_b = {
                'weda-ui': true
            },
            _b[className] = className,
            _b)), id: id, style: style, contentEditable: contenteditable, onInput: onInput, onBlur: onBlur },
        React.createElement(react_markdown_1.default, { source: source, renderers: {
                code: function (_a) {
                    var language = _a.language, _b = _a.value, value = _b === void 0 ? '' : _b;
                    return (
                    /*#__PURE__*/ React.createElement(prism_1.default, { language: language }, value));
                },
            } }),
        LABEL));
}
exports.default = Markdown;
//# sourceMappingURL=index.js.map