import React from 'react'; import PublishDropzone from './PublishDropzone.jsx'; import PublishForm from './PublishForm.jsx'; import PublishStatus from './PublishStatus.jsx'; import {connect} from 'react-redux'; class PublishTool extends React.Component { constructor (props) { super(props); } render () { return (
{ !this.props.file && } { this.props.file && } { this.props.publishStatus && }
); } }; const mapStateToProps = state => { return { file : state.file, publishStatus: state.publishStatus, }; }; export default connect(mapStateToProps, null)(PublishTool);