2019-05-21 23:18:11 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { doHideModal } from 'redux/actions/app';
|
2020-06-12 22:44:25 +02:00
|
|
|
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()),
|
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)),
|
|
|
|
});
|
|
|
|
|
2020-06-12 22:44:25 +02:00
|
|
|
export default connect(null, perform)(ModalAutoGenerateThumbnail);
|