import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { Editor } from 'draft-js' import DocumentTitle from '../components/documentTitle' import LoadingSpinner from '../components/loadingSpinner' const ReaderContent = ({ currentDocument, editorState, loadingToggle, highlightToggle, }) =>
{loadingToggle === true && }



const mapStateToProps = state => { return { currentDocument: state.currentDocument, editorState: state.editorState, highlightToggle: state.highlightToggle, loadingToggle: state.loadingToggle } } ReaderContent.propTypes = { currentDocument: PropTypes.object, editorState: PropTypes.object, loadingToggle: PropTypes.bool, highlightToggle: PropTypes.bool, } const ReaderContentContainer = connect(mapStateToProps)(ReaderContent) export default ReaderContentContainer