"use strict";

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

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

const template = pluginContext => {
  const React = pluginContext.lib.React;
  const Row = pluginContext.layoutComponents.Row;
  const Field = pluginContext.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: "taxonRank" }),
      React.createElement(Field, { name: "taxonCurrency" })
    ),
    React.createElement(Field, { name: "taxonNote" })
  );
};

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