@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
12 lines (11 loc) • 345 B
JavaScript
import { REQUEST_PRODUCT_MEDIA } from "../constants";
/**
* Dispatches the REQUEST_PRODUCT_MEDIA action.
* @param {string} productId The ID of the product for which the options are requested.
* @return {Object}
*/
const requestProductMedia = productId => ({
type: REQUEST_PRODUCT_MEDIA,
productId
});
export default requestProductMedia;