function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
import React from 'react';
import { Tooltip } from '../Tooltip';
import { useI18nContext } from '../_hooks/I18n';
import { StyledFormFieldTooltipIcon } from './Form.styles';
export var FormFieldTooltip = function FormFieldTooltip(props) {
  var i18n = useI18nContext();
  return /*#__PURE__*/React.createElement(Tooltip, _extends({
    role: "tooltip",
    trigger: ['hover', 'focus']
  }, props), /*#__PURE__*/React.createElement(StyledFormFieldTooltipIcon, {
    "aria-label": i18n.t('core.form.field.tooltipHelp'),
    "aria-hidden": false,
    size: "sm",
    tabIndex: 0
  }));
};
//# sourceMappingURL=FormFieldTooltip.js.map