chuckya/app/javascript/mastodon/features/compose/containers/upload_progress_container.js
2023-05-23 17:15:17 +02:00

11 lines
360 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']),
isProcessing: state.getIn(['compose', 'is_processing']),
});
export default connect(mapStateToProps)(UploadProgress);