"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.useCollectionPageContent = useCollectionPageContent;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _designSystem = require("@wix/design-system");
var _react2 = require("@wix/bex-core/react");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/state/CollectionPage/useCollectionPageContent.tsx";
function useCollectionPageContent(child) {
  const {
    isPanelLayout
  } = (0, _react2.useWixPatternsContainer)();
  if (isPanelLayout) {
    return /*#__PURE__*/_react.default.createElement(_designSystem.Box, (0, _extends2.default)({}, child.props, {
      direction: "vertical",
      minHeight: 0,
      height: "100%",
      flex: 1,
      __self: this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 10,
        columnNumber: 7
      }
    }));
  }
  return /*#__PURE__*/_react.default.createElement(_designSystem.Page.Content, (0, _extends2.default)({}, child.props, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 19,
      columnNumber: 10
    }
  }));
}
//# sourceMappingURL=useCollectionPageContent.js.map