2021-10-28 03:57:24 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { withRouter } from 'react-router';
|
|
|
|
import {
|
|
|
|
selectMyPublishedPlaylistCollections,
|
|
|
|
selectMyUnpublishedCollections, // should probably distinguish types
|
|
|
|
// selectSavedCollections,
|
|
|
|
} from 'redux/selectors/collections';
|
|
|
|
import { selectFetchingMyCollections } from 'redux/selectors/claims';
|
|
|
|
import PlaylistsMine from './view';
|
|
|
|
|
2021-11-05 21:11:26 +01:00
|
|
|
const select = (state) => {
|
2021-10-28 03:57:24 +02:00
|
|
|
return {
|
|
|
|
publishedCollections: selectMyPublishedPlaylistCollections(state),
|
|
|
|
unpublishedCollections: selectMyUnpublishedCollections(state),
|
|
|
|
// savedCollections: selectSavedCollections(state),
|
|
|
|
fetchingCollections: selectFetchingMyCollections(state),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default withRouter(connect(select)(PlaylistsMine));
|