import { createSelector } from '@ngrx/store' ; import { IAppState } from '../state/app.state' ; import { IUserState } from '../state/user.state' ; const selectUsers = ( state ) => state . users ; export const selectUserList = createSelector ( selectUsers , ( state ) => state . users ) ; export const selectSelectedUser = createSelector ( selectUsers , ( state ) => state . selectedUser ) ;