UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

6 lines 408 B
import{ERROR_CATEGORY}from"../constants";/** * Dispatches the ERROR_CATEGORY action. * @param {string} categoryId The ID of the received category. * @param {string} errorCode The error code. * @return {Object} The ERROR_CATEGORY action. */var errorCategory=function errorCategory(categoryId,errorCode){return{type:ERROR_CATEGORY,categoryId:categoryId,errorCode:errorCode};};export default errorCategory;