"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ActionCellBase = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const MainAction_1 = require("./MainAction");
const SecondaryAction_1 = require("./SecondaryAction");
const styles_1 = require("./styles");
const ActionCellBase = ({ actions, isDisabledAction, handleWrapperClick, handleActionClick, }) => {
    const { main, secondary } = actions;
    return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { onClick: handleWrapperClick, children: [main.map((action) => {
                return ((0, jsx_runtime_1.jsx)(MainAction_1.MainAction, { action: action, onActionClick: handleActionClick, isDisabled: isDisabledAction }, action.name));
            }), secondary && ((0, jsx_runtime_1.jsx)(SecondaryAction_1.SecondaryActions, { actions: secondary, onActionClick: handleActionClick, isDisabled: isDisabledAction }))] }));
};
exports.ActionCellBase = ActionCellBase;
