"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _constants = require("../../constants");
var _InfoIcon = _interopRequireDefault(require("../../../InfoIcon"));
var _InfoContentIconSt = require("./InfoContentIcon.st.css.js");
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/FieldSet/components/InfoContentIcon/InfoContentIcon.tsx";
var InfoContentIcon = _ref => {
  var {
    infoContent,
    infoTooltipProps,
    required
  } = _ref;
  return infoContent ? /*#__PURE__*/_react.default.createElement(_InfoIcon.default, {
    dataHook: _constants.dataHooks.infoIcon,
    className: (0, _InfoContentIconSt.st)(_InfoContentIconSt.classes.root, {
      required
    }),
    content: infoContent,
    tooltipProps: infoTooltipProps,
    size: "small",
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 20,
      columnNumber: 5
    }
  }) : null;
};
var _default = exports.default = InfoContentIcon;
//# sourceMappingURL=InfoContentIcon.js.map