31 lines
1.2 KiB
JavaScript
31 lines
1.2 KiB
JavaScript
import { connect } from 'react-redux';
|
|
|
|
import { doPurchaseList } from 'redux/actions/claims';
|
|
import { selectMyPurchases, selectIsFetchingMyPurchases } from 'redux/selectors/claims';
|
|
import { selectDownloadUrlsCount, selectIsFetchingFileList } from 'redux/selectors/file_info';
|
|
|
|
import {
|
|
selectBuiltinCollections,
|
|
selectMyPublishedMixedCollections,
|
|
selectMyPublishedPlaylistCollections,
|
|
selectMyUnpublishedCollections, // should probably distinguish types
|
|
// selectSavedCollections, // TODO: implement saving and copying collections
|
|
} from 'redux/selectors/collections';
|
|
|
|
import ListsPage from './view';
|
|
|
|
const select = (state) => ({
|
|
allDownloadedUrlsCount: selectDownloadUrlsCount(state),
|
|
fetchingFileList: selectIsFetchingFileList(state),
|
|
myPurchases: selectMyPurchases(state),
|
|
fetchingMyPurchases: selectIsFetchingMyPurchases(state),
|
|
builtinCollections: selectBuiltinCollections(state),
|
|
publishedCollections: selectMyPublishedMixedCollections(state),
|
|
publishedPlaylists: selectMyPublishedPlaylistCollections(state),
|
|
unpublishedCollections: selectMyUnpublishedCollections(state),
|
|
// savedCollections: selectSavedCollections(state),
|
|
});
|
|
|
|
export default connect(select, {
|
|
doPurchaseList,
|
|
})(ListsPage);
|