2021-09-09 09:02:31 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-12-31 18:52:26 +01:00
|
|
|
import { selectClaimForUri } from 'redux/selectors/claims';
|
|
|
|
import { selectViewCountForUri } 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 {
|
2021-12-31 18:52:26 +01:00
|
|
|
claim: selectClaimForUri(state, props.uri),
|
|
|
|
viewCount: selectViewCountForUri(state, props.uri),
|
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);
|