UNPKG

@shopgate/engage

Version:
6 lines 667 B
import React,{memo}from'react';import PropTypes from'prop-types';import{isDev}from'@shopgate/engage/core/helpers';import Shortcuts from"./Shortcuts";import SimulatedInsets from"../SimulatedInsets";/** * Provides development tools for the app. * @param {Object} props The component props. * @param {React.ReactNode} props.children The child components. * @returns {JSX.Element} */var DevelopmentTools=function DevelopmentTools(_ref){var children=_ref.children;if(!isDev){return children;}return React.createElement(React.Fragment,null,React.createElement(Shortcuts,null),React.createElement(SimulatedInsets,null,children));};export default memo(DevelopmentTools);