"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SecondaryActions = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("react");
const DotsVOutlineMd_1 = require("../../../icons/DotsVOutlineMd");
const IconDropdownButton_1 = require("../../IconDropdownButton");
const MenuItem_1 = require("../../MenuItem");
const SecondaryActions = ({ actions, onActionClick, isDisabled, }) => {
    return ((0, jsx_runtime_1.jsx)(IconDropdownButton_1.IconDropdownButton, { "aria-label": "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F", icon: (0, jsx_runtime_1.jsx)(DotsVOutlineMd_1.DotsVOutlineMd, {}), variant: "text", disabled: isDisabled, children: actions.map((action) => {
            const { onClick, name } = action;
            return ((0, react_1.createElement)(MenuItem_1.MenuItem, { ...action, key: name, tooltipPlacement: "left", onClick: onActionClick(onClick) }, name));
        }) }));
};
exports.SecondaryActions = SecondaryActions;
