"use strict";

exports.__esModule = true;
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _icon = require("../../../icon");
var _flex = _interopRequireDefault(require("../../../templates/flex"));
var _tooltip = _interopRequireDefault(require("../../../drops/tooltip"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var Info = function Info(_ref) {
  var meta = _ref.meta;
  var tooltipText = meta && meta != null && meta.tooltip ? meta == null ? void 0 : meta.tooltip : "";
  if (!tooltipText) return null;
  return /*#__PURE__*/_react["default"].createElement(_flex["default"], {
    width: 3,
    height: 3
  }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
    align: "bottom",
    content: tooltipText
  }, /*#__PURE__*/_react["default"].createElement(_icon.Icon, {
    color: "nodeBadgeColor",
    size: "small",
    name: "information"
  })));
};
var _default = exports["default"] = Info;