wix-style-react
Version:
21 lines (18 loc) • 442 B
JavaScript
import PropTypes from 'prop-types';
var Content = function Content(_ref) {
var children = _ref.children,
stickyStyle = _ref.stickyStyle;
if (typeof children === 'function') {
return children({
stickyStyle: stickyStyle
});
} else {
return children;
}
};
Content.displayName = 'Page.Content';
Content.propTypes = {
children: PropTypes.node.isRequired,
fullScreen: PropTypes.bool
};
export default Content;