2019-06-09 08:57:51 +02:00
|
|
|
import { connect } from 'react-redux';
|
2019-06-21 08:04:02 +02:00
|
|
|
import { doResolveUri, makeSelectTitleForUri, makeSelectClaimForUri, makeSelectIsUriResolving } from 'lbry-redux';
|
2019-06-09 08:57:51 +02:00
|
|
|
import { selectBlackListedOutpoints } from 'lbryinc';
|
2020-10-20 19:10:02 +02:00
|
|
|
import { selectPlayingUri } from 'redux/selectors/content';
|
|
|
|
import { doSetPlayingUri } from 'redux/actions/content';
|
2019-06-09 08:57:51 +02:00
|
|
|
import ClaimLink from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => {
|
|
|
|
return {
|
|
|
|
uri: props.uri,
|
|
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
|
|
|
title: makeSelectTitleForUri(props.uri)(state),
|
|
|
|
isResolvingUri: makeSelectIsUriResolving(props.uri)(state),
|
|
|
|
blackListedOutpoints: selectBlackListedOutpoints(state),
|
2020-10-20 19:10:02 +02:00
|
|
|
playingUri: selectPlayingUri(state),
|
2019-06-09 08:57:51 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-10-20 19:10:02 +02:00
|
|
|
export default connect(select, {
|
|
|
|
doResolveUri,
|
|
|
|
doSetPlayingUri,
|
|
|
|
})(ClaimLink);
|