fb3a73d8a7
Enter: Odysee Premium.
19 lines
648 B
JavaScript
19 lines
648 B
JavaScript
import { connect } from 'react-redux';
|
|
import { selectClaimForUri, selectOdyseeMembershipForUri } from 'redux/selectors/claims';
|
|
import TextareaSuggestionsItem from './view';
|
|
import { formatLbryChannelName } from 'util/url';
|
|
import { getClaimTitle } from 'util/claim';
|
|
|
|
const select = (state, props) => {
|
|
const { uri } = props;
|
|
|
|
const claim = uri && selectClaimForUri(state, uri);
|
|
|
|
return {
|
|
claimLabel: claim && formatLbryChannelName(claim.canonical_url),
|
|
claimTitle: claim && getClaimTitle(claim),
|
|
odyseeMembershipByUri: selectOdyseeMembershipForUri(state, uri),
|
|
};
|
|
};
|
|
|
|
export default connect(select)(TextareaSuggestionsItem);
|