2021-02-16 16:09:20 -05:00
|
|
|
import { connect } from 'react-redux';
|
2021-03-09 14:59:38 +08:00
|
|
|
import {
|
|
|
|
makeSelectClaimForUri,
|
2021-12-31 12:52:26 -05:00
|
|
|
selectTotalStakedAmountForChannelUri,
|
|
|
|
selectStakedLevelForChannelUri,
|
2021-10-07 23:47:39 -04:00
|
|
|
} from 'redux/selectors/claims';
|
2021-02-16 16:09:20 -05:00
|
|
|
import ChannelStakedIndicator from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => ({
|
|
|
|
channelClaim: makeSelectClaimForUri(props.uri)(state),
|
2021-12-31 12:52:26 -05:00
|
|
|
amount: selectTotalStakedAmountForChannelUri(state, props.uri),
|
|
|
|
level: selectStakedLevelForChannelUri(state, props.uri),
|
2021-02-16 16:09:20 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select)(ChannelStakedIndicator);
|