"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SecondaryVisibleActions = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const IconButton_1 = require("../../IconButton");
const Tooltip_1 = require("../../Tooltip");
const SecondaryVisibleActions = ({ actions, className, size, }) => {
    return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: actions.map((action) => {
            const { name, icon, disabledReason, disabled, isBlockingOperation, ...mainProps } = action;
            return ((0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { title: disabled ? disabledReason : name, withoutContainer: !disabled, children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { variant: "outlined", color: "grey", size: size, name: name, disabled: disabled, className: className, ...mainProps, children: icon }) }, name));
        }) }));
};
exports.SecondaryVisibleActions = SecondaryVisibleActions;
