2019-06-28 03:27:55 -04:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-17 16:36:14 +08:00
|
|
|
import { selectPublishFormValues } from 'redux/selectors/publish';
|
|
|
|
import { doUpdatePublishForm } from 'redux/actions/publish';
|
2021-07-06 09:29:46 +08:00
|
|
|
import PublishAdditionalOptions from './view';
|
2022-01-19 21:06:14 +08:00
|
|
|
import { selectUser } from 'redux/selectors/user';
|
2019-06-28 03:27:55 -04:00
|
|
|
|
2021-07-06 09:29:46 +08:00
|
|
|
const select = (state) => ({
|
2019-06-28 03:27:55 -04:00
|
|
|
...selectPublishFormValues(state),
|
2020-07-02 18:42:04 -04:00
|
|
|
user: selectUser(state),
|
2019-06-28 03:27:55 -04:00
|
|
|
});
|
|
|
|
|
2021-07-06 09:29:46 +08:00
|
|
|
const perform = (dispatch) => ({
|
|
|
|
updatePublishForm: (value) => dispatch(doUpdatePublishForm(value)),
|
2019-06-28 03:27:55 -04:00
|
|
|
});
|
|
|
|
|
2021-07-06 09:29:46 +08:00
|
|
|
export default connect(select, perform)(PublishAdditionalOptions);
|