@shopgate/engage
Version:
Shopgate's ENGAGE library.
9 lines • 854 B
JavaScript
import{DEVELOPMENT_TOOLS_TOGGLE_INSETS,DEVELOPMENT_TOOLS_TOGGLE_INSET_HIGHLIGHT}from"../constants";/**
* Toggles the simulation of iOS safe area insets.
* @param {boolean} visible Whether the insets should be visible or not.
* @returns {Object} The action object.
*/export var toggleInsets=function toggleInsets(){var visible=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;return{type:DEVELOPMENT_TOOLS_TOGGLE_INSETS,visible:visible};};/**
* Toggles the highlighting of the simulated iOS safe area insets.
* @param {boolean} visible Whether the insets should be visible or not.
* @returns {Object} The action object.
*/export var toggleInsetHighlight=function toggleInsetHighlight(){var visible=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;return{type:DEVELOPMENT_TOOLS_TOGGLE_INSET_HIGHLIGHT,visible:visible};};