import { createFeatureSelector , createSelector } from '@ngrx/store' ; import { REVIEWERSTATISTICS_FEATURE_KEY , ReviewerStatisticsState } from './reviewer-statistics.reducer' ; const getReviewerStatisticsState = createFeatureSelector < ReviewerStatisticsState > ( REVIEWERSTATISTICS_FEATURE_KEY ) ; const getReviewerStatisticsResponse = createSelector ( getReviewerStatisticsState , state => state . reviewerStatisticsResponse ) ; const getReviewerStatisticsResponseLoading = createSelector ( getReviewerStatisticsState , state => state . reviewerStatisticsResponseLoading ) ; const getReviewerStatisticsResponseLoadError = createSelector ( getReviewerStatisticsState , state => state . reviewerStatisticsResponseLoadError ) ; const getReviewerStatisticsSelectedRepositories = createSelector ( getReviewerStatisticsState , state => state . reviewerStatisticsSelectedRepositories ) ; export const reviewerStatisticsQuery = { getReviewerStatisticsResponse : getReviewerStatisticsResponse , getReviewerStatisticsResponseLoading : getReviewerStatisticsResponseLoading , getReviewerStatisticsResponseLoadError : getReviewerStatisticsResponseLoadError , getReviewerStatisticsSelectedRepositories : getReviewerStatisticsSelectedRepositories } ;