"use strict";

import { forwardRef } from "react";
import { View } from "react-native";
import { IOVisualCostants } from "../../core/IOStyles";
import { jsx as _jsx } from "react/jsx-runtime";
/**
`ContentWrapper` is the main wrapper of the application. It automatically sets side margins,
depending on the size value
@param {IOContentWrapper} margin
 */
export const ContentWrapper = /*#__PURE__*/forwardRef(({
  margin = IOVisualCostants.appMarginDefault,
  style,
  children,
  testID,
  ...rest
}, ref) => /*#__PURE__*/_jsx(View, {
  testID: testID,
  style: {
    paddingHorizontal: margin,
    ...style
  },
  ref: ref,
  ...rest,
  children: children
}));
//# sourceMappingURL=ContentWrapper.js.map