2019-05-21 17:18:11 -04:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { doHideModal } from 'redux/actions/app';
|
2019-07-02 22:30:34 -04:00
|
|
|
import { doToast, doUploadThumbnail } from 'lbry-redux';
|
2019-05-21 17:18:11 -04:00
|
|
|
import ModalAutoGenerateThumbnail from './view';
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
|
|
|
closeModal: () => dispatch(doHideModal()),
|
2019-10-07 16:02:32 -04:00
|
|
|
upload: file => dispatch(doUploadThumbnail(null, file, null, null, 'Generated')),
|
2019-05-21 17:18:11 -04:00
|
|
|
showToast: options => dispatch(doToast(options)),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(
|
|
|
|
null,
|
|
|
|
perform
|
|
|
|
)(ModalAutoGenerateThumbnail);
|