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

16 lines
497 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import {
2021-11-10 16:30:58 +01:00
selectClaimForUri,
selectStakedLevelForChannelUri,
selectTotalStakedAmountForChannelUri,
} from 'redux/selectors/claims';
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),
});
export default connect(select)(ChannelStakedIndicator);