@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
12 lines (11 loc) • 393 B
JavaScript
import { REQUEST_SEARCH_SUGGESTIONS } from "../constants";
/**
* Creates the dispatched REQUEST_SEARCH_SUGGESTIONS action object.
* @param {string} searchPhrase The search phrase.
* @return {Object} The REQUEST_SEARCH_SUGGESTIONS action.
*/
const requestSearchSuggestions = searchPhrase => ({
type: REQUEST_SEARCH_SUGGESTIONS,
searchPhrase
});
export default requestSearchSuggestions;