import { __assign } from "tslib";
import React from "react";
import { DropdownItemStyled } from "./styles";
var DropdownItem = function (_a) {
    var getItemLabel = _a.getItemLabel, getItemOnClick = _a.getItemOnClick, onItemClick = _a.onItemClick, getItemDisabled = _a.getItemDisabled, getItemLeadContent = _a.getItemLeadContent, getItemAttributes = _a.getItemAttributes, item = _a.item;
    return (React.createElement(DropdownItemStyled, __assign({}, getItemAttributes(item), { icon: getItemLeadContent(item), isDisabled: getItemDisabled(item), viewType: "ghost", size: "s", onClick: function (event) {
            var _a;
            event.preventDefault();
            getItemOnClick(item)
                ? (_a = getItemOnClick(item)) === null || _a === void 0 ? void 0 : _a(event, item)
                : onItemClick === null || onItemClick === void 0 ? void 0 : onItemClick(event, item);
        } }), getItemLabel(item)));
};
export default DropdownItem;
