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

16 lines
552 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { makeSelectPublishFormValue, selectIsScheduled } from 'redux/selectors/publish';
import { doUpdatePublishForm } from 'redux/actions/publish';
import PublishStreamReleaseDate from './view';
const select = (state) => ({
isScheduled: selectIsScheduled(state),
releaseTime: makeSelectPublishFormValue('releaseTime')(state),
});
const perform = (dispatch) => ({
updatePublishForm: (value) => dispatch(doUpdatePublishForm(value)),
});
export default connect(select, perform)(PublishStreamReleaseDate);