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