"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ContentWrapper = void 0;
var _react = require("react");
var _reactNative = require("react-native");
var _IOStyles = require("../../core/IOStyles");
var _jsxRuntime = require("react/jsx-runtime");
/**
`ContentWrapper` is the main wrapper of the application. It automatically sets side margins,
depending on the size value
@param {IOContentWrapper} margin
 */
const ContentWrapper = exports.ContentWrapper = /*#__PURE__*/(0, _react.forwardRef)(({
  margin = _IOStyles.IOVisualCostants.appMarginDefault,
  style,
  children,
  testID,
  ...rest
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
  testID: testID,
  style: {
    paddingHorizontal: margin,
    ...style
  },
  ref: ref,
  ...rest,
  children: children
}));
//# sourceMappingURL=ContentWrapper.js.map