"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.FormList = void 0;

var _react = _interopRequireDefault(require("react"));

var _formList = require("./form-list.proptypes");

var _forms = require("../forms.common");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

/* eslint react/no-array-index-key: 0 */
var FormList = function FormList(_ref) {
  var items = _ref.items;
  return _react["default"].createElement(_forms.FormBox, null, items.map(function (item, index) {
    return _react["default"].createElement(_forms.FormRow, {
      key: index,
      isLast: index + 1 === items.length,
      stacked: "column",
      justify: "center"
    }, item);
  }));
};

exports.FormList = FormList;
FormList.displayName = 'FormList';
FormList.propTypes = _formList.formListPropTypes;