"use strict";
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);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PopoverListMenuItem = void 0;
var react_fontawesome_1 = require("@fortawesome/react-fontawesome");
var material_1 = require("@mui/material");
var react_1 = __importDefault(require("react"));
var ListItemLink = function (props) {
    return react_1.default.createElement(material_1.ListItem, __assign({ button: true, component: "a", target: "_blank" }, props));
};
function PopoverListMenuItem(_a) {
    var icon = _a.icon, iconColor = _a.iconColor, _b = _a.textColor, textColor = _b === void 0 ? "primary" : _b, onClick = _a.onClick, label = _a.label, labelClassName = _a.labelClassName, className = _a.className, href = _a.href;
    return (react_1.default.createElement(ListItemLink, { onClick: onClick, className: className, href: href },
        icon ? (react_1.default.createElement(material_1.ListItemIcon, null,
            react_1.default.createElement(react_fontawesome_1.FontAwesomeIcon, { icon: icon, color: iconColor }))) : null,
        react_1.default.createElement(material_1.ListItemText, { className: labelClassName, primary: label, primaryTypographyProps: {
                color: textColor,
            } })));
}
exports.PopoverListMenuItem = PopoverListMenuItem;
//# sourceMappingURL=PopoverListMenuItem.js.map