import { DaffPaymentActionTypes , DaffPaymentActions , } from '../../actions/payment.actions' ; import { DaffPaymentReducerState } from './payment-reducer.interface' ; export const initialState = { paymentInfo : null , } ; export function daffPaymentReducer ( state = initialState , action ) { switch ( action . type ) { case DaffPaymentActionTypes . UpdatePaymentInfoAction : return { ... state , paymentInfo : action . payload } ; default : return state ; } }