import React from 'react'; import PropTypes from 'prop-types'; import Prism from 'prismjs'; import Loading from '../../components/loading'; import CommonToolbar from '../../components/toolbar/common-toolbar'; import '../../css/initial-style.css'; require('@seafile/seafile-editor/src/lib/code-hight-package'); const contentClass = 'markdown-viewer-render-content'; const propTypes = { renderingContent: PropTypes.bool.isRequired, content: PropTypes.string.isRequired, }; class MainPanel extends React.Component { componentDidMount() { Prism.highlightAll(); } onSearchedClick = () => { //todos; } render() { return (
{ this.props.renderingContent ? (
) : (
) }
); } } MainPanel.propTypes = propTypes; export default MainPanel;