2017-03-24 04:50:30 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import UploadProgress from '../components/upload_progress';
|
|
|
|
|
2017-06-23 17:05:04 +03:00
|
|
|
const mapStateToProps = state => ({
|
2017-03-24 04:50:30 +02:00
|
|
|
active: state.getIn(['compose', 'is_uploading']),
|
2017-05-20 18:31:47 +03:00
|
|
|
progress: state.getIn(['compose', 'progress']),
|
2017-03-24 04:50:30 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(mapStateToProps)(UploadProgress);
|