lbry-desktop/ui/component/claimInsufficientCredits/index.js

12 lines
479 B
JavaScript
Raw Normal View History

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);