import { createSelector } from 'reselect' ; import { AppState } from "../../app/app.state" ; import { HomeState } from "./home.reducer" ; export function getHomeState ( state ) { return state . home ; } ; export function fetchTracksRendered ( state ) { return state . tracksRendered ; } export const getTracksRendered = createSelector ( getHomeState , fetchTracksRendered ) ;