"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const classnames_1 = tslib_1.__importDefault(require("classnames"));
const react_core_1 = require("@patternfly/react-core");
const outlined_question_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/outlined-question-circle-icon");
const PopoverIcon = (_a) => {
    var { component, variant = 'plain', IconComponent = outlined_question_circle_icon_1.OutlinedQuestionCircleIcon, noVerticalAlign = false, buttonClassName, buttonOuiaId, buttonStyle } = _a, props = tslib_1.__rest(_a, ["component", "variant", "IconComponent", "noVerticalAlign", "buttonClassName", "buttonOuiaId", "buttonStyle"]);
    return (react_1.default.createElement(react_core_1.Popover, Object.assign({}, props),
        react_1.default.createElement(react_core_1.Button, { icon: react_1.default.createElement(react_core_1.Icon, { isInline: noVerticalAlign },
                react_1.default.createElement(IconComponent, null)), component: component, variant: variant, onClick: (e) => e.preventDefault(), className: (0, classnames_1.default)('pf-v6-c-form__group-label-help', 'pf-v6-u-p-0', buttonClassName), ouiaId: buttonOuiaId, style: buttonStyle })));
};
exports.default = PopoverIcon;
//# sourceMappingURL=PopoverIcon.js.map