"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.useCollectionPageFooter = useCollectionPageFooter;
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/useCollectionPageFooter.tsx";
function useCollectionPageFooter(child) {
  const {
    isPanelLayout
  } = (0, _react2.useWixPatternsContainer)();
  if (isPanelLayout) {
    return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_designSystem.Divider, {
      __self: this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 11,
        columnNumber: 9
      }
    }), /*#__PURE__*/_react.default.createElement(_designSystem.Box, (0, _extends2.default)({
      direction: "vertical",
      padding: "SP4"
    }, child.props, {
      __self: this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 12,
        columnNumber: 9
      }
    })));
  }
  return /*#__PURE__*/_react.default.createElement(_designSystem.Page.Footer, (0, _extends2.default)({}, child.props, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 16,
      columnNumber: 10
    }
  }));
}
//# sourceMappingURL=useCollectionPageFooter.js.map