var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import React, { forwardRef } from 'react';
import i18n from 'ui-i18n';
import ControlAttribute from '../icons/ControlAttribute';
import { withTooltip } from '../HOCs/withTooltip';
import { useStyles } from './styles';
var ControlAttributeForwarded = forwardRef(function (props, ref) {
    return (React.createElement("span", __assign({}, props, { ref: ref }),
        React.createElement(ControlAttribute, null)));
});
ControlAttributeForwarded.displayName = 'ControlAttributeForwarded';
var ControlAttributeWithTooltip = withTooltip(ControlAttributeForwarded);
export var ControlAttributeIcon = function () {
    var styles = useStyles();
    return (React.createElement(ControlAttributeWithTooltip, { "data-reltio-id": "reltio-control-attribute-icon", tooltipTitle: i18n.text('This is a control attribute. Changing this value will affect availability of other conditional attributes.'), className: styles.icon }));
};
