2021-02-16 22:09:20 +01:00
|
|
|
import { connect } from 'react-redux';
|
2021-03-09 07:59:38 +01:00
|
|
|
import {
|
|
|
|
makeSelectClaimForUri,
|
|
|
|
makeSelectStakedLevelForChannelUri,
|
|
|
|
makeSelectTotalStakedAmountForChannelUri,
|
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-03-09 07:59:38 +01:00
|
|
|
amount: makeSelectTotalStakedAmountForChannelUri(props.uri)(state),
|
|
|
|
level: makeSelectStakedLevelForChannelUri(props.uri)(state),
|
2021-02-16 22:09:20 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select)(ChannelStakedIndicator);
|