lbry-desktop/ui/page/library/index.js
zeppi ee9f63a161 integrate all the things
bugfix

wip

flow

fix

cleaning

clean
2021-10-15 23:49:41 -04:00

16 lines
626 B
JavaScript

import { connect } from 'react-redux';
import { selectDownloadUrlsCount, selectIsFetchingFileList } from 'redux/selectors/file_info';
import { selectMyPurchases, selectIsFetchingMyPurchases } from 'redux/selectors/claims';
import { doPurchaseList } from 'redux/actions/claims';
import LibraryPage from './view';
const select = (state) => ({
allDownloadedUrlsCount: selectDownloadUrlsCount(state),
fetchingFileList: selectIsFetchingFileList(state),
myPurchases: selectMyPurchases(state),
fetchingMyPurchases: selectIsFetchingMyPurchases(state),
});
export default connect(select, {
doPurchaseList,
})(LibraryPage);