2020-04-01 20:43:50 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-11-19 03:40:01 +01:00
|
|
|
import { selectInsufficientCreditsForUri } from 'redux/selectors/content';
|
2021-10-17 10:36:14 +02:00
|
|
|
import { makeSelectClaimWasPurchased } from 'redux/selectors/claims';
|
2020-04-01 20:43:50 +02:00
|
|
|
import ClaimInsufficientCredits from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => ({
|
2021-11-19 03:40:01 +01:00
|
|
|
isInsufficientCredits: selectInsufficientCreditsForUri(state, props.uri),
|
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);
|