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

29 lines
741 B
JavaScript
Raw Normal View History

2018-04-02 12:39:00 -04:00
import { connect } from 'react-redux';
import {
selectPublishFormValues,
selectMyClaimForUri,
2019-11-01 13:27:01 -04:00
doUpdatePublishForm,
2019-08-29 16:19:37 +01:00
selectFileInfosByOutpoint,
doResetThumbnailStatus,
} from 'lbry-redux';
import { doOpenModal } from 'redux/actions/app';
import PublishPage from './view';
const select = state => ({
...selectPublishFormValues(state),
2019-09-03 06:23:31 +01:00
fileInfos: selectFileInfosByOutpoint(state),
myClaimForUri: selectMyClaimForUri(state),
});
2018-04-02 12:39:00 -04:00
const perform = dispatch => ({
updatePublishForm: value => dispatch(doUpdatePublishForm(value)),
resetThumbnailStatus: () => dispatch(doResetThumbnailStatus()),
openModal: (modal, props) => dispatch(doOpenModal(modal, props)),
2018-04-02 12:39:00 -04:00
});
2018-06-08 00:05:45 -04:00
export default connect(
select,
2018-06-08 00:05:45 -04:00
perform
)(PublishPage);