@shopgate/engage
Version:
Shopgate's ENGAGE library.
8 lines • 586 B
JavaScript
import{HIDE_PUSH_OPT_IN_MODAL,SHOW_PUSH_OPT_IN_MODAL}from"../constants";/**
* action to be dispatched when the push opt-in should be shown
* @param {"appStarts"|"ordersPlaced"} triggerType Trigger type that caused showing the modal
* @returns {Function}
*/export var showPushOptInModal=function showPushOptInModal(triggerType){return{type:SHOW_PUSH_OPT_IN_MODAL,triggerType:triggerType};};/**
* action to be dispatched when the push opt-in should be hidden
* @returns {Function}
*/export var hidePushOptInModal=function hidePushOptInModal(){return{type:HIDE_PUSH_OPT_IN_MODAL};};