"use strict";

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

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

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

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

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

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

var DocOperation = _ref => {
  var {
    method
  } = _ref;
  return _react.default.createElement(_components.SpaceVertical, {
    align: "start",
    mb: "large",
    gap: "xsmall"
  }, _react.default.createElement(_runIt.MethodBadge, {
    type: method.httpMethod
  }, _react.default.createElement(_components2.DocPseudo, {
    method: method
  })), _react.default.createElement(_runIt.MethodBadge, {
    type: method.httpMethod
  }, _react.default.createElement(_components.Flex, {
    alignItems: "center"
  }, _react.default.createElement(_components.Text, {
    fontSize: "xsmall",
    fontWeight: "semiBold",
    mr: "xxsmall"
  }, method.httpMethod), _react.default.createElement(_components.Code, {
    fontSize: "small",
    fontWeight: "normal"
  }, method.endpoint))));
};

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