lbry-desktop/ui/page/library/index.js

21 lines
540 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import {
selectDownloadUrlsCount,
selectIsFetchingFileList,
selectMyPurchases,
selectIsFetchingMyPurchases,
2020-05-21 17:38:28 +02:00
doPurchaseList,
} from 'lbry-redux';
2019-06-28 09:33:07 +02:00
import LibraryPage from './view';
const select = state => ({
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);