@netdata/netdata-ui
Version:
netdata UI kit
21 lines • 669 B
JavaScript
import React from "react";
import { Icon } from "../../../icon";
import Flex from "../../../templates/flex";
import Tooltip from "../../../drops/tooltip";
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.createElement(Flex, {
width: 3,
height: 3
}, /*#__PURE__*/React.createElement(Tooltip, {
align: "bottom",
content: tooltipText
}, /*#__PURE__*/React.createElement(Icon, {
color: "nodeBadgeColor",
size: "small",
name: "information"
})));
};
export default Info;