import { MemoizedSelector , createFeatureSelector , createSelector , DefaultProjectorFn , } from '@ngrx/store' ; import { DaffStateError } from '@daffodil/core/state' ; import { DAFF_CONTACT_STORE_FEATURE_KEY } from '../reducers/contact-store-feature-key' ; import { DaffContactState , DaffContactStateRootSlice , } from '../reducers/contact.reducer' ; export const selectContactFeatureState = createFeatureSelector < DaffContactState > ( DAFF_CONTACT_STORE_FEATURE_KEY ) ; export const selectDaffContactLoading = createSelector ( selectContactFeatureState , ( state ) => state . loading ) ; export const selectDaffContactSuccess = createSelector ( selectContactFeatureState , ( state ) => state . success ) ; export const selectDaffContactError = createSelector ( selectContactFeatureState , ( state ) => state . errors ) ;