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';
|
2022-04-20 15:06:30 +02:00
|
|
|
import { selectClaimWasPurchasedForUri } 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),
|
2022-04-20 15:06:30 +02:00
|
|
|
claimWasPurchased: selectClaimWasPurchasedForUri(state, props.uri),
|
2020-04-01 20:43:50 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select)(ClaimInsufficientCredits);
|