mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
19 lines
725 B
JavaScript
19 lines
725 B
JavaScript
import { connect } from 'react-redux';
|
|
import { doHideModal } from 'redux/actions/app';
|
|
import ModalPublishPreview from './view';
|
|
import { makeSelectPublishFormValue, selectPublishFormValues } from 'lbry-redux';
|
|
import { selectFfmpegStatus } from 'redux/selectors/settings';
|
|
import { doPublishDesktop } from 'redux/actions/publish';
|
|
|
|
const select = state => ({
|
|
...selectPublishFormValues(state),
|
|
isVid: makeSelectPublishFormValue('fileVid')(state),
|
|
ffmpegStatus: selectFfmpegStatus(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
publish: (filePath, preview) => dispatch(doPublishDesktop(filePath, preview)),
|
|
closeModal: () => dispatch(doHideModal()),
|
|
});
|
|
|
|
export default connect(select, perform)(ModalPublishPreview);
|