"use strict";

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

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

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

var _sdkCodegen = require("@looker/sdk-codegen");

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

var DocParam = _ref => {
  var {
    parameter
  } = _ref;
  return _react.default.createElement(_components.Tooltip, {
    content: "".concat(parameter.type.name, " ").concat((0, _sdkCodegen.describeParam)(parameter))
  }, _react.default.createElement("span", null, parameter.required ? parameter.name : "[".concat(parameter.name, "]")));
};

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