diff --git a/src/app/shared/state/index.ts b/src/app/shared/state/index.ts index 3b68c8d..9cc57fe 100644 --- a/src/app/shared/state/index.ts +++ b/src/app/shared/state/index.ts @@ -11,3 +11,20 @@ export const reducers: ActionReducerMap = { }; export const metaReducers: MetaReducer[] = []; + +/** + * Books Selectors + */ +export const selectBooksState = (state: State) => state.books; +export const selectAllBooks = createSelector( + selectBooksState, + fromBooks.selectAll +); +export const selectActiveBook = createSelector( + selectBooksState, + fromBooks.selectActiveBook +); +export const selectBooksEarningsTotals = createSelector( + selectBooksState, + fromBooks.selectEarningsTotals +);