lbry-desktop/ui/page/library/index.js
2020-05-21 11:38:28 -04:00

20 lines
540 B
JavaScript

import { connect } from 'react-redux';
import {
selectDownloadUrlsCount,
selectIsFetchingFileList,
selectMyPurchases,
selectIsFetchingMyPurchases,
doPurchaseList,
} from 'lbry-redux';
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);