lbry-desktop/ui/modal/modalAutoGenerateThumbnail/index.js

14 lines
542 B
JavaScript
Raw Normal View History

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