2021-02-16 22:09:20 +01:00
|
|
|
import { connect } from 'react-redux';
|
2021-03-09 07:59:38 +01:00
|
|
|
import {
|
2021-11-10 16:30:58 +01:00
|
|
|
selectClaimForUri,
|
|
|
|
selectStakedLevelForChannelUri,
|
|
|
|
selectTotalStakedAmountForChannelUri,
|
2021-10-17 10:36:14 +02:00
|
|
|
} from 'redux/selectors/claims';
|
2021-02-16 22:09:20 +01:00
|
|
|
import ChannelStakedIndicator from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => ({
|
2021-11-10 16:30:58 +01:00
|
|
|
channelClaim: selectClaimForUri(state, props.uri),
|
|
|
|
amount: selectTotalStakedAmountForChannelUri(state, props.uri),
|
|
|
|
level: selectStakedLevelForChannelUri(state, props.uri),
|
2021-02-16 22:09:20 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select)(ChannelStakedIndicator);
|