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

12 lines
471 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { makeSelectInsufficientCreditsForUri } from 'redux/selectors/content';
2020-05-21 17:38:28 +02:00
import { makeSelectClaimWasPurchased } from 'lbry-redux';
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);