@empathyco/x-components
Version:
Empathy X Components
15 lines (13 loc) • 388 B
JavaScript
/**
* Default implementation setUrlParams.
*
* @param context - The context of the actions, provided by Vuex.
* @param urlParams - List of params from the url.
* @public
*/
const setUrlParams = ({ commit }, { query, prompt }) => {
commit('setQuery', query);
commit('setSelectedPrompt', prompt);
};
export { setUrlParams };
//# sourceMappingURL=set-url-params.action.js.map