lbry-desktop/ui/component/fileDrop/index.js

21 lines
595 B
JavaScript
Raw Permalink Normal View History

import { connect } from 'react-redux';
import { doUpdatePublishForm, makeSelectPublishFormValue } from 'lbry-redux';
import { selectModal } from 'redux/selectors/app';
import { doOpenModal } from 'redux/actions/app';
import FileDrop from './view';
const select = state => ({
modal: selectModal(state),
filePath: makeSelectPublishFormValue('filePath')(state),
});
const perform = dispatch => ({
openModal: (modal, props) => dispatch(doOpenModal(modal, props)),
updatePublishForm: value => dispatch(doUpdatePublishForm(value)),
});
export default connect(select, perform)(FileDrop);