"use strict";

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

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

var _components = require("@looker/components");

var _runIt = require("@looker/run-it");

var _components2 = require("../../components");

var _DocSummaryStatus = require("./DocSummaryStatus");

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

var DocMethodSummary = _ref => {
  var {
    method
  } = _ref;
  return _react.default.createElement(_components.Card, {
    maxWidth: "50rem",
    border: true
  }, _react.default.createElement(_components.CardContent, null, _react.default.createElement(_components.Space, {
    align: "start",
    between: true
  }, _react.default.createElement(_runIt.MethodBadge, {
    type: method.httpMethod,
    textAlign: "center",
    minWidth: "3.7625rem"
  }, method.httpMethod.toUpperCase()), _react.default.createElement(_components.Flex, {
    alignItems: "start",
    flexDirection: "column",
    flex: "1",
    mx: "small"
  }, _react.default.createElement(_runIt.RunItHeading, {
    as: "h3",
    mb: "0",
    pt: "0"
  }, method.summary), _react.default.createElement(_components.Space, null, _react.default.createElement(_components2.DocRateLimited, {
    method: method
  }), _react.default.createElement(_components2.DocActivityType, {
    method: method
  })), _react.default.createElement(_components.Text, {
    color: "subdued"
  }, method.endpoint)), _react.default.createElement(_DocSummaryStatus.DocSummaryStatus, {
    status: method.status
  }))));
};

exports.DocMethodSummary = DocMethodSummary;
//# sourceMappingURL=DocMethodSummary.js.map