import { createFeatureSelector , createSelector , MemoizedSelector } from '@ngrx/store' ; import { PriceState } from '@core/interfaces/price-state.interface' ; const prices = createFeatureSelector ( 'prices' ) ; export const selectPriceForAsset = ( assetId ) => createSelector ( prices , ( state ) => state [ assetId ] ) ; export const selectSubscribedAssets = createSelector ( prices , ( state ) => Object . keys ( state ) ) ;