UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

6 lines 451 B
import{REQUEST_PRODUCT_REVIEWS}from"../constants";/** * Dispatches the REQUEST_PRODUCT_REVIEWS action. * @param {string} productId The ID of the product * @param {number} limit The maximum number of reviews * @returns {Object} The REQUEST_PRODUCT_REVIEWS action */var requestProductReviews=function requestProductReviews(productId,limit){return{type:REQUEST_PRODUCT_REVIEWS,productId:productId,limit:limit};};export default requestProductReviews;