UNPKG

@shopgate/engage

Version:
9 lines 814 B
import{APP_PERMISSION_STATUS_RECEIVED}from"../constants/actionTypes";/** * Creates the APP_PERMISSION_STATUS_RECEIVED Redux action object that's supposed to be dispatched * when a permission status was requested from the app. * @param {Object} params Action params * @param {string} params.permissionId The updated permission id * @param {string} params.status The new status * @param {Object} [params.options={}] Extended options for the permission * @returns {Object} The Redux action object */export var appPermissionStatusReceived=function appPermissionStatusReceived(_ref){var permissionId=_ref.permissionId,status=_ref.status,_ref$options=_ref.options,options=_ref$options===void 0?{}:_ref$options;return{type:APP_PERMISSION_STATUS_RECEIVED,permissionId:permissionId,status:status,options:options};};