UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

7 lines 583 B
import{RECEIVE_PRODUCT_REVIEWS}from"../constants";/** * Dispatches the RECEIVE_PRODUCT_REVIEWS action. * @param {string} productId The ID of the product * @param {Object} reviews The received review data * @param {number} totalReviewCount The total number of reviews for a product * @returns {Object} The RECEIVE_PRODUCT_REVIEWS action */var receiveProductReviews=function receiveProductReviews(productId,reviews,totalReviewCount){return{type:RECEIVE_PRODUCT_REVIEWS,productId:productId,reviews:reviews,totalReviewCount:totalReviewCount};};export default receiveProductReviews;