2020-05-25 16:27:36 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
|
2021-10-08 05:47:39 +02:00
|
|
|
import { doUpdatePublishForm } from 'redux/actions/publish';
|
|
|
|
import { makeSelectPublishFormValue } from 'redux/selectors/publish';
|
2020-05-25 16:27:36 +02:00
|
|
|
|
|
|
|
import { selectModal } from 'redux/selectors/app';
|
|
|
|
import { doOpenModal } from 'redux/actions/app';
|
|
|
|
|
|
|
|
import FileDrop from './view';
|
|
|
|
|
2021-10-08 05:47:39 +02:00
|
|
|
const select = (state) => ({
|
2020-05-25 16:27:36 +02:00
|
|
|
modal: selectModal(state),
|
|
|
|
filePath: makeSelectPublishFormValue('filePath')(state),
|
|
|
|
});
|
|
|
|
|
2021-10-08 05:47:39 +02:00
|
|
|
const perform = (dispatch) => ({
|
2020-05-25 16:27:36 +02:00
|
|
|
openModal: (modal, props) => dispatch(doOpenModal(modal, props)),
|
2021-10-08 05:47:39 +02:00
|
|
|
updatePublishForm: (value) => dispatch(doUpdatePublishForm(value)),
|
2020-05-25 16:27:36 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, perform)(FileDrop);
|