'use strict';

var React = require('react');
var Row = require('react-bootstrap/Row');
var Col = require('react-bootstrap/Col');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
var Row__default = /*#__PURE__*/_interopDefaultLegacy(Row);
var Col__default = /*#__PURE__*/_interopDefaultLegacy(Col);

var Column1 = function Column1(props) {
  var title = props.title;

  return React__default["default"].createElement(
    'section',
    null,
    React__default["default"].createElement(
      Row__default["default"],
      { className: 'justify-content-md-center' },
      React__default["default"].createElement(
        Col__default["default"],
        { className: 'middleCol', style: { marginTop: !title && '10px' } },
        title && React__default["default"].createElement(
          'h1',
          null,
          title
        ),
        props.children
      )
    )
  );
};

module.exports = Column1;
