2021-09-09 09:02:31 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-17 10:36:14 +02:00
|
|
|
import { makeSelectClaimForUri } from 'redux/selectors/claims';
|
2021-09-09 09:02:31 +02:00
|
|
|
import { makeSelectViewCountForUri } from 'lbryinc';
|
2021-09-16 11:01:14 +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-16 11:01:14 +02:00
|
|
|
lang: selectLanguage(state),
|
2021-09-09 09:02:31 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(select, null)(FileViewCountInline);
|