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

13 lines
542 B
JavaScript

import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
import { doUploadThumbnail } from 'redux/actions/publish';
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);