"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.FormPageAdditionalContent = FormPageAdditionalContent;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _designSystem = require("@wix/design-system");
var _useIsMobile = require("../../hooks/useIsMobile");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/FormPageAdditionalContent/FormPageAdditionalContent.tsx";
function FormPageAdditionalContent(props) {
  const isMobile = (0, _useIsMobile.useIsMobile)();
  const {
    children,
    sticky,
    ...rest
  } = props;
  const content = /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
    direction: "vertical",
    gap: isMobile ? 'SP2' : 'SP4',
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 24,
      columnNumber: 5
    }
  }, children);
  const wrappedContent = sticky && !isMobile ? /*#__PURE__*/_react.default.createElement(_designSystem.Page.Sticky, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 30,
      columnNumber: 27
    }
  }, content) : content;
  return /*#__PURE__*/_react.default.createElement(_designSystem.Cell, (0, _extends2.default)({
    span: isMobile ? 12 : 4
  }, rest, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 33,
      columnNumber: 5
    }
  }), wrappedContent);
}
FormPageAdditionalContent.displayName = 'FormPageAdditionalContent';
//# sourceMappingURL=FormPageAdditionalContent.js.map