lbry-desktop/src/ui/modal/modalConfirmThumbnailUpload/index.js
2019-08-16 10:50:06 -04:00

17 lines
560 B
JavaScript

import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
import { doUploadThumbnail, doUpdatePublishForm } from 'lbry-redux';
import fs from 'fs';
import path from 'path';
import ModalConfirmThumbnailUpload from './view';
const perform = dispatch => ({
closeModal: () => dispatch(doHideModal()),
upload: filePath => dispatch(doUploadThumbnail(filePath, null, null, fs, path)),
updatePublishForm: value => dispatch(doUpdatePublishForm(value)),
});
export default connect(
null,
perform
)(ModalConfirmThumbnailUpload);