2016-11-13 18:08:52 +00:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import UploadForm from '../components/upload_form';
|
|
|
|
|
2017-06-23 14:05:04 +00:00
|
|
|
const mapStateToProps = state => ({
|
2017-09-28 13:31:31 +00:00
|
|
|
mediaIds: state.getIn(['compose', 'media_attachments']).map(item => item.get('id')),
|
2016-11-13 18:08:52 +00:00
|
|
|
});
|
|
|
|
|
2017-09-28 13:31:31 +00:00
|
|
|
export default connect(mapStateToProps)(UploadForm);
|