2021-03-10 19:34:21 +01:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-08 05:47:39 +02:00
|
|
|
import {
|
|
|
|
makeSelectClaimForUri,
|
|
|
|
makeSelectTagInClaimOrChannelForUri,
|
|
|
|
makeSelectThumbnailForUri,
|
|
|
|
} 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
|
|
|
|
|
|
|
const select = (state, props) => ({
|
|
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
2021-03-18 18:21:49 +01:00
|
|
|
thumbnail: makeSelectThumbnailForUri(props.uri)(state),
|
2021-06-03 17:55:16 +02:00
|
|
|
chatDisabled: makeSelectTagInClaimOrChannelForUri(props.uri, DISABLE_COMMENTS_TAG)(state),
|
2021-03-10 19:34:21 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select)(LivestreamLayout);
|