2019-05-21 23:18:11 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { doHideModal } from 'redux/actions/app';
|
2021-10-08 05:47:39 +02:00
|
|
|
import { doUploadThumbnail } from 'redux/actions/publish';
|
2020-06-12 22:44:25 +02:00
|
|
|
import { doToast } from 'redux/actions/notifications';
|
2019-05-21 23:18:11 +02:00
|
|
|
import ModalAutoGenerateThumbnail from './view';
|
|
|
|
|
2021-10-08 05:47:39 +02:00
|
|
|
const perform = (dispatch) => ({
|
2019-05-21 23:18:11 +02:00
|
|
|
closeModal: () => dispatch(doHideModal()),
|
2021-10-08 05:47:39 +02:00
|
|
|
upload: (file) => dispatch(doUploadThumbnail(null, file, null, null, 'Generated')),
|
|
|
|
showToast: (options) => dispatch(doToast(options)),
|
2019-05-21 23:18:11 +02:00
|
|
|
});
|
|
|
|
|
2020-06-12 22:44:25 +02:00
|
|
|
export default connect(null, perform)(ModalAutoGenerateThumbnail);
|