lbry-desktop/ui/component/channelStakedIndicator/index.js

16 lines
505 B
JavaScript
Raw Permalink Normal View History

import { connect } from 'react-redux';
import {
makeSelectClaimForUri,
selectTotalStakedAmountForChannelUri,
selectStakedLevelForChannelUri,
} from 'redux/selectors/claims';
import ChannelStakedIndicator from './view';
const select = (state, props) => ({
channelClaim: makeSelectClaimForUri(props.uri)(state),
amount: selectTotalStakedAmountForChannelUri(state, props.uri),
level: selectStakedLevelForChannelUri(state, props.uri),
});
export default connect(select)(ChannelStakedIndicator);