2021-09-09 09:02:31 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { makeSelectClaimForUri } from 'lbry-redux';
|
|
|
|
import { makeSelectViewCountForUri } from 'lbryinc';
|
2021-09-12 11:16:56 +02:00
|
|
|
import { selectLanguage } from 'redux/selectors/settings';
|
2021-09-09 09:02:31 +02:00
|
|
|
import FileViewCountInline from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => {
|
|
|
|
return {
|
|
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
|
|
|
viewCount: makeSelectViewCountForUri(props.uri)(state),
|
2021-09-12 11:16:56 +02:00
|
|
|
lang: selectLanguage(state),
|
2021-09-09 09:02:31 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(select, null)(FileViewCountInline);
|