lbry-desktop/ui/modal/modalAutoGenerateThumbnail/index.js
zeppi ee9f63a161 integrate all the things
bugfix

wip

flow

fix

cleaning

clean
2021-10-15 23:49:41 -04:00

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);