2020-04-01 20:43:50 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { makeSelectInsufficientCreditsForUri } from 'redux/selectors/content';
|
2020-05-21 17:38:28 +02:00
|
|
|
import { makeSelectClaimWasPurchased } from 'lbry-redux';
|
2020-04-01 20:43:50 +02:00
|
|
|
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),
|
2020-04-01 20:43:50 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select)(ClaimInsufficientCredits);
|