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

14 lines
525 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 'lbry-redux';
import { doToast } from 'redux/actions/notifications';
2019-05-21 23:18:11 +02:00
import ModalAutoGenerateThumbnail from './view';
const perform = dispatch => ({
closeModal: () => dispatch(doHideModal()),
upload: file => dispatch(doUploadThumbnail(null, file, null, null, 'Generated')),
2019-05-21 23:18:11 +02:00
showToast: options => dispatch(doToast(options)),
});
export default connect(null, perform)(ModalAutoGenerateThumbnail);