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