import { daffCartStoreCreditReducer } from '@daffodil/cart-store-credit/state'
The reducer for the cart store credit page state, see DaffCartStoreCreditReducerState.
function daffCartStoreCreditReducer<T extends DaffCartWithStoreCredit = DaffCartWithStoreCredit>(
state: DaffOperationState = daffCartStoreCreditInitialState
action: DaffCartStoreCreditActions<T>
): DaffCartStoreCreditReducerState
| Parameter | state: DaffOperationState |
|---|---|
| Default | daffCartStoreCreditInitialState |
| Description |
| Parameter | action: DaffCartStoreCreditActions<T> |
|---|---|
| Description |