2020-04-01 20:43:50 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { makeSelectInsufficientCreditsForUri } from 'redux/selectors/content';
|
2021-10-08 05:47:39 +02:00
|
|
|
import { makeSelectClaimWasPurchased } from 'redux/selectors/claims';
|
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);
|