daffReviewsCollectionReducer
Handles the reduction of review actions into the collection metadata state.
import { daffReviewsCollectionReducer } from '@daffodil/reviews/state'
function daffReviewsCollectionReducer<T extends DaffProductReview = DaffProductReview>(
state: DaffCollectionMetadata = daffCollectionReducerInitialState
action: DaffReviewsProductList | DaffReviewsProductListFailure | DaffReviewsCollectionChangePageSize | DaffReviewsCollectionChangeCurrentPage | DaffReviewsCollectionChangeSortingOption | DaffReviewsCollectionChangeFilter | DaffReviewsProductListSuccess<...>
): DaffReviewsCollectionReducerState