import { connect } from 'react-redux';

import UploadProgress from '../components/upload-progress';

const mapStateToProps = state => ({
  active: state.getIn(['compose', 'is_uploading']),
  progress: state.getIn(['compose', 'progress']),
});

export default connect(mapStateToProps)(UploadProgress);