madiator.com/ui/modal/modalAutoGenerateThumbnail/index.js
2021-08-16 12:11:25 +02:00

13 lines
525 B
JavaScript

import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
import { doUploadThumbnail } from 'lbry-redux';
import { doToast } from 'redux/actions/notifications';
import ModalAutoGenerateThumbnail from './view';
const perform = dispatch => ({
closeModal: () => dispatch(doHideModal()),
upload: file => dispatch(doUploadThumbnail(null, file, null, null, 'Generated')),
showToast: options => dispatch(doToast(options)),
});
export default connect(null, perform)(ModalAutoGenerateThumbnail);