import { createFeatureSelector , createSelector } from "@ngrx/store" ; import { State , featureName } from "src/web/browser-window/app/store/reducers/db-view" ; import { WebAccountPk } from "src/web/browser-window/app/model" ; export const STATE = createFeatureSelector < State > ( featureName ) ; export const FEATURED = { instance ( ) { return createSelector ( STATE , ( { instances } , { pk } ) => instances [ JSON . stringify ( pk ) ] ) ; } , } as const ;