chinwagsocial/app/javascript/mastodon/features/compose/containers/upload_progress_container.js

11 lines
359 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import UploadProgress from '../components/upload_progress';
2017-06-24 00:05:04 +10:00
const mapStateToProps = state => ({
active: state.getIn(['compose', 'is_uploading']),
progress: state.getIn(['compose', 'progress']),
isProcessing: state.getIn(['compose', 'is_processing']),
});
export default connect(mapStateToProps)(UploadProgress);