import { createSelector , createFeatureSelector , MemoizedSelector , } from '@ngrx/store' ; import { DaffOrder } from '../../models/order/order' ; import { DaffOrderReducersState } from '../reducers/order-reducers.interface' ; import { DaffOrderReducerState } from '../reducers/order/order-reducer.interface' ; deprecated export const selectOrderFeatureState = createFeatureSelector < DaffOrderReducersState > ( 'order' ) ; deprecated export const selectOrderState = createSelector ( selectOrderFeatureState , ( state ) => state . order ) ; deprecated export const selectOrder = createSelector ( selectOrderState , ( state ) => state . order ) ; deprecated export const selectLoading = createSelector ( selectOrderState , ( state ) => state . loading ) ; deprecated export const selectErrors = createSelector ( selectOrderState , ( state ) => state . errors ) ;