2021-12-16 22:59:13 +01:00
|
|
|
import { connect } from 'react-redux';
|
2022-01-05 15:59:26 +01:00
|
|
|
import { makeSelectPublishFormValue, selectIsScheduled } from 'redux/selectors/publish';
|
2021-12-16 22:59:13 +01:00
|
|
|
import { doUpdatePublishForm } from 'redux/actions/publish';
|
|
|
|
import PublishStreamReleaseDate from './view';
|
|
|
|
|
|
|
|
const select = (state) => ({
|
2022-01-05 15:59:26 +01:00
|
|
|
isScheduled: selectIsScheduled(state),
|
2021-12-16 22:59:13 +01:00
|
|
|
releaseTime: makeSelectPublishFormValue('releaseTime')(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = (dispatch) => ({
|
|
|
|
updatePublishForm: (value) => dispatch(doUpdatePublishForm(value)),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, perform)(PublishStreamReleaseDate);
|