var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    }
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
import React from 'react';
import { connect } from 'react-redux';
import MonacoEditor from 'react-monaco-editor';
var CodeEditor = /** @class */ (function (_super) {
    __extends(CodeEditor, _super);
    function CodeEditor() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    CodeEditor.prototype.render = function () {
        var code = this.props.code;
        return (React.createElement(MonacoEditor, { width: "50%", height: "100%", language: "c", theme: "vs-dark", value: code }));
    };
    return CodeEditor;
}(React.Component));
var mapStateToProps = function (_a) {
    var software = _a.software;
    return ({
        code: software.code,
    });
};
var mapDispatchToProps = function (dispatch) { return ({}); };
export default connect(mapStateToProps, mapDispatchToProps)(CodeEditor);
//# sourceMappingURL=CodeEditor.js.map