"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _reactIntl = require("react-intl");

const template = configContext => {
  const React = configContext.lib.React;
  const Row = configContext.layoutComponents.Row;
  const Field = configContext.recordComponents.Field;


  return React.createElement(
    Field,
    { name: "document" },
    React.createElement(Field, {
      name: "relation-list-item",
      subpath: "rel:relations-common-list",
      showChildren: false,
      showSiblings: false
    }),
    React.createElement(
      Row,
      null,
      React.createElement(Field, { name: "birthDateGroup" }),
      React.createElement(Field, { name: "deathDateGroup" })
    ),
    React.createElement(Field, { name: "bioNote" })
  );
};

exports.default = configContext => ({
  disabled: true,
  messages: (0, _reactIntl.defineMessages)({
    name: {
      "id": "form.person.mini.name",
      "defaultMessage": "Mini Template"
    }
  }),
  template: template(configContext)
});