"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.SettingsMenu = void 0;
var react_1 = __importDefault(require("react"));
var Settings_1 = __importDefault(require("@mui/icons-material/Settings"));
var ui_i18n_1 = __importDefault(require("ui-i18n"));
var SmallIconButton_1 = require("../SmallIconButton");
var DropDownMenuButton_1 = require("../DropDownMenuButton");
var SettingsMenuItemRenderer_1 = require("./components/SettingsMenuItemRenderer");
var SettingsMenu = function (_a) {
    var items = _a.items, menuId = _a.menuId;
    return (react_1.default.createElement(DropDownMenuButton_1.DropDownMenuButton, { buttonComponent: SmallIconButton_1.SmallIconButtonWithTooltip, buttonProps: {
            icon: Settings_1.default,
            tooltipTitle: ui_i18n_1.default.text('Settings'),
            size: 'L'
        }, menuId: menuId, menuItems: items, MenuItemRenderer: SettingsMenuItemRenderer_1.SettingsMenuItemRenderer }));
};
exports.SettingsMenu = SettingsMenu;
