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,
|
|
|
|
} from 'lbry-redux';
|
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);
|