"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.Option = void 0;
var react_1 = __importDefault(require("react"));
var classnames_1 = __importDefault(require("classnames"));
var MenuItem_1 = __importDefault(require("@mui/material/MenuItem"));
var Checkbox_1 = __importDefault(require("@mui/material/Checkbox"));
var ExpandedValueTooltip_1 = require("../../../ExpandedValueTooltip");
var Option = function (_a) {
    var _b;
    var innerProps = _a.innerProps, innerRef = _a.innerRef, children = _a.children, isFocused = _a.isFocused, isSelected = _a.isSelected, classes = _a.selectProps.classes, label = _a.label;
    return (react_1.default.createElement(MenuItem_1.default, __assign({ className: (0, classnames_1.default)(classes.option, (_b = {}, _b[classes['option--selected']] = isSelected, _b)), ref: innerRef, selected: isFocused, component: "div" }, innerProps),
        react_1.default.createElement(Checkbox_1.default, { color: "primary", checked: isSelected }),
        react_1.default.createElement(ExpandedValueTooltip_1.ExpandedValueTooltip, { value: label },
            react_1.default.createElement("div", { className: classes['option--item'] }, children))));
};
exports.Option = Option;
