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 11:38:28 -04:00
doPurchaseList,
} from 'lbry-redux';
2019-06-28 03:33:07 -04:00
import LibraryPage from './view';
const select = state => ({
allDownloadedUrlsCount: selectDownloadUrlsCount(state),
fetchingFileList: selectIsFetchingFileList(state),
myPurchases: selectMyPurchases(state),
fetchingMyPurchases: selectIsFetchingMyPurchases(state),
});
2020-05-21 11:38:28 -04:00
export default connect(select, {
doPurchaseList,
})(LibraryPage);