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

12 lines
483 B
JavaScript
Raw Normal View History

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