"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.MaybeTooltip = MaybeTooltip;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _designSystem = require("@wix/design-system");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/MaybeTooltip.tsx";
function MaybeTooltip(props) {
  const {
    content,
    children,
    ...rest
  } = props;
  if (!content) {
    return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children);
  }
  return /*#__PURE__*/_react.default.createElement(_designSystem.Tooltip, (0, _extends2.default)({
    content: content
  }, rest, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 12,
      columnNumber: 5
    }
  }), children);
}
//# sourceMappingURL=MaybeTooltip.js.map