2021-04-23 21:59:48 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-17 10:36:14 +02:00
|
|
|
import { selectBalance } from 'redux/selectors/wallet';
|
2022-02-02 17:20:10 +01:00
|
|
|
import { selectClaimForUri } from 'redux/selectors/claims';
|
2021-04-23 21:59:48 +02:00
|
|
|
import WalletTipAmountSelector from './view';
|
2022-03-28 22:32:01 +02:00
|
|
|
import { selectClientSetting } from 'redux/selectors/settings';
|
|
|
|
import * as SETTINGS from 'constants/settings';
|
2021-04-23 21:59:48 +02:00
|
|
|
|
2022-02-02 17:20:10 +01:00
|
|
|
const select = (state, props) => ({
|
|
|
|
balance: selectBalance(state),
|
|
|
|
claim: selectClaimForUri(state, props.uri),
|
2022-03-28 22:32:01 +02:00
|
|
|
preferredCurrency: selectClientSetting(state, SETTINGS.PREFERRED_CURRENCY),
|
2022-02-02 17:20:10 +01:00
|
|
|
});
|
2021-04-23 21:59:48 +02:00
|
|
|
|
|
|
|
export default connect(select)(WalletTipAmountSelector);
|