lbry-desktop/ui/component/walletTipAmountSelector/index.js

12 lines
379 B
JavaScript
Raw Normal View History

2021-04-23 15:59:48 -04:00
import { connect } from 'react-redux';
import { selectBalance } from 'redux/selectors/wallet';
2022-02-02 13:20:10 -03:00
import { selectClaimForUri } from 'redux/selectors/claims';
2021-04-23 15:59:48 -04:00
import WalletTipAmountSelector from './view';
2022-02-02 13:20:10 -03:00
const select = (state, props) => ({
balance: selectBalance(state),
claim: selectClaimForUri(state, props.uri),
});
2021-04-23 15:59:48 -04:00
export default connect(select)(WalletTipAmountSelector);