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

12 lines
475 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { selectInsufficientCreditsForUri } from 'redux/selectors/content';
import { makeSelectClaimWasPurchased } from 'redux/selectors/claims';
import ClaimInsufficientCredits from './view';
const select = (state, props) => ({
isInsufficientCredits: selectInsufficientCreditsForUri(state, props.uri),
2020-05-21 17:38:28 +02:00
claimWasPurchased: makeSelectClaimWasPurchased(props.uri)(state),
});
export default connect(select)(ClaimInsufficientCredits);