11d3f88654
* WIP: live stream kill switch * Update hint layout / style * update livestream API endpoint * use the no-cors option
18 lines
517 B
JavaScript
18 lines
517 B
JavaScript
import { connect } from 'react-redux';
|
|
import { selectActiveChannelClaim } from 'redux/selectors/app';
|
|
import { doToast } from 'redux/actions/notifications';
|
|
import ClaimPreviewReset from './view';
|
|
|
|
const select = (state) => {
|
|
const { claim_id: channelId, name: channelName } = selectActiveChannelClaim(state) || {};
|
|
return {
|
|
channelName,
|
|
channelId,
|
|
};
|
|
};
|
|
|
|
const perform = (dispatch) => ({
|
|
doToast: (props) => dispatch(doToast(props)),
|
|
});
|
|
|
|
export default connect(select, perform)(ClaimPreviewReset);
|