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

14 lines
413 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { makeSelectClaimForUri } from 'lbry-redux';
import { makeSelectViewCountForUri } from 'lbryinc';
import FileViewCountInline from './view';
const select = (state, props) => {
return {
claim: makeSelectClaimForUri(props.uri)(state),
viewCount: makeSelectViewCountForUri(props.uri)(state),
};
};
export default connect(select, null)(FileViewCountInline);