lbry-desktop/ui/component/claimInsufficientCredits/index.js
Rafael 0dccabe692 Selector change
- and remove from where it was unused
2022-04-20 09:18:43 -04:00

11 lines
479 B
JavaScript

import { connect } from 'react-redux';
import { selectInsufficientCreditsForUri } from 'redux/selectors/content';
import { selectClaimWasPurchasedForUri } from 'redux/selectors/claims';
import ClaimInsufficientCredits from './view';
const select = (state, props) => ({
isInsufficientCredits: selectInsufficientCreditsForUri(state, props.uri),
claimWasPurchased: selectClaimWasPurchasedForUri(state, props.uri),
});
export default connect(select)(ClaimInsufficientCredits);