import { createSelector , createFeatureSelector , MemoizedSelector , } from '@ngrx/store' ; import { DaffAddress } from '@daffodil/core' ; import { PaymentInfo } from '../../models/payment/payment-info' ; import { DaffBillingReducersState } from '../reducers/billing-reducers.interface' ; import { DaffBillingReducerState } from '../reducers/billing/billing-reducer.interface' ; /**
 * Billing Feature State
 */ export const selectBillingFeatureState = createFeatureSelector < DaffBillingReducersState > ( 'billing' ) ; /**
 * Billing State
 */ export const selectBillingState = createSelector ( selectBillingFeatureState , ( state ) => state . billing ) ; export const selectBillingAddress = createSelector ( selectBillingState , ( state ) => state . billingAddress ) ; export const selectBillingAddressIsShippingAddress = createSelector ( selectBillingState , ( state ) => state . billingAddressIsShippingAddress ) ; export const selectPaymentInfo = createSelector ( selectBillingState , ( state ) => state . paymentInfo ) ;