2020-05-11 17:54:39 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-17 10:36:14 +02:00
|
|
|
import { selectDownloadUrlsCount, selectIsFetchingFileList } from 'redux/selectors/file_info';
|
|
|
|
import { selectMyPurchases, selectIsFetchingMyPurchases } from 'redux/selectors/claims';
|
|
|
|
import { doPurchaseList } from 'redux/actions/claims';
|
2019-06-28 09:33:07 +02:00
|
|
|
import LibraryPage from './view';
|
|
|
|
|
2021-10-17 10:36:14 +02:00
|
|
|
const select = (state) => ({
|
2020-05-11 17:54:39 +02:00
|
|
|
allDownloadedUrlsCount: selectDownloadUrlsCount(state),
|
|
|
|
fetchingFileList: selectIsFetchingFileList(state),
|
|
|
|
myPurchases: selectMyPurchases(state),
|
|
|
|
fetchingMyPurchases: selectIsFetchingMyPurchases(state),
|
|
|
|
});
|
|
|
|
|
2020-05-21 17:38:28 +02:00
|
|
|
export default connect(select, {
|
|
|
|
doPurchaseList,
|
|
|
|
})(LibraryPage);
|