import { IAppState } from '../state/app.state' ; import { createSelector } from '@ngrx/store' ; import { ITransactionState } from '../state/cash.state' ; const selectTransactions = ( state ) => state . transactions ; export const selectTransactionsStream = createSelector ( selectTransactions , ( state ) => state . transactions ) ;