chuckya/app/javascript/mastodon/features/compose/containers/upload_progress_container.js
2017-06-23 16:05:04 +02:00

9 lines
300 B
JavaScript

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);