UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

6 lines 541 B
import{RECEIVE_CATEGORY_CHILDREN}from"../constants";/** * Dispatches the RECEIVE_CATEGORY_CHILDREN action. * @param {string} categoryId The ID of the category to receive children for. * @param {Array} categoryChildren The requested category children. * @return {Object} The RECEIVE_CATEGORY_CHILDREN action. */var receiveCategoryChildren=function receiveCategoryChildren(categoryId,categoryChildren){return{type:RECEIVE_CATEGORY_CHILDREN,categoryId:categoryId,categoryChildren:categoryChildren};};export default receiveCategoryChildren;