2019-05-21 23:18:11 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { doHideModal } from 'redux/actions/app';
|
2019-07-03 04:30:34 +02:00
|
|
|
import { doToast, doUploadThumbnail } from 'lbry-redux';
|
2019-05-21 23:18:11 +02:00
|
|
|
import ModalAutoGenerateThumbnail from './view';
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
|
|
|
closeModal: () => dispatch(doHideModal()),
|
2019-10-07 22:02:32 +02:00
|
|
|
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);
|