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

17 lines
539 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { selectPublishFormValues } from 'redux/selectors/publish';
import { doUpdatePublishForm } from 'redux/actions/publish';
import PublishAdditionalOptions from './view';
2022-01-19 14:06:14 +01:00
import { selectUser } from 'redux/selectors/user';
const select = (state) => ({
...selectPublishFormValues(state),
user: selectUser(state),
});
const perform = (dispatch) => ({
updatePublishForm: (value) => dispatch(doUpdatePublishForm(value)),
});
export default connect(select, perform)(PublishAdditionalOptions);