import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
var _excluded = ["children", "noMaxWidth", "center", "className", "as"];
import * as React from 'react';
import classNames from 'classnames';

var LayoutContent = function LayoutContent(_ref) {
  var children = _ref.children,
      noMaxWidth = _ref.noMaxWidth,
      center = _ref.center,
      className = _ref.className,
      _ref$as = _ref.as,
      Type = _ref$as === void 0 ? 'div' : _ref$as,
      props = _objectWithoutProperties(_ref, _excluded);

  var layoutContentClass = classNames('sg-layout__content', {
    'sg-layout__content--no-max-width': noMaxWidth,
    'sg-layout__content--center': center
  }, className);
  return /*#__PURE__*/React.createElement(Type, _extends({}, props, {
    className: layoutContentClass
  }), children);
};

export default LayoutContent;