2021-03-10 19:34:21 +01:00
|
|
|
import { connect } from 'react-redux';
|
2022-01-14 21:24:16 +01:00
|
|
|
import { selectClaimForUri, makeSelectTagInClaimOrChannelForUri, selectThumbnailForUri } from 'redux/selectors/claims';
|
2021-03-10 19:34:21 +01:00
|
|
|
import LivestreamLayout from './view';
|
2021-06-03 17:55:16 +02:00
|
|
|
import { DISABLE_COMMENTS_TAG } from 'constants/tags';
|
2021-03-10 19:34:21 +01:00
|
|
|
|
2022-01-14 21:24:16 +01:00
|
|
|
const select = (state, props) => {
|
|
|
|
const { uri } = props;
|
|
|
|
|
|
|
|
return {
|
|
|
|
claim: selectClaimForUri(state, uri),
|
|
|
|
thumbnail: selectThumbnailForUri(state, uri),
|
|
|
|
chatDisabled: makeSelectTagInClaimOrChannelForUri(uri, DISABLE_COMMENTS_TAG)(state),
|
|
|
|
};
|
|
|
|
};
|
2021-03-10 19:34:21 +01:00
|
|
|
|
|
|
|
export default connect(select)(LivestreamLayout);
|