File size: 594 Bytes
f5071ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { connect } from "react-redux";
import { createStructuredSelector } from "reselect";
import { compose } from "redux";

import { selectIsTVFetching } from "../../Redux/TVShow/tv-selectors";

import WithSpinnerTVShows from "../WithSpinner/WithSpinnerTVShows";
import CollectionOverview from "./CollectionOverview";

const mapStateToProps = createStructuredSelector({
  isTVOverviewLoading: selectIsTVFetching
});

const CollectionOverviewTVShows = compose(
  connect(mapStateToProps),
  WithSpinnerTVShows
)(CollectionOverview);

export default CollectionOverviewTVShows;