"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ActionGroup = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const hooks_1 = require("./hooks");
const MainActions_1 = require("./MainActions");
const SecondaryActions_1 = require("./SecondaryActions");
const SecondaryVisibleActions_1 = require("./SecondaryVisibleActions");
const styles_1 = require("./styles");
const ActionGroup = (props) => {
    const { main, secondary, secondaryVisible, className, size = 'medium', } = props;
    const { disabledAction } = (0, hooks_1.useActionsState)({ main, secondary });
    return ((0, jsx_runtime_1.jsxs)(styles_1.Wrapper, { className: className, children: [secondary && ((0, jsx_runtime_1.jsx)(SecondaryActions_1.SecondaryActions, { isDisabled: disabledAction, actions: secondary, size: size })), secondaryVisible && ((0, jsx_runtime_1.jsx)(SecondaryVisibleActions_1.SecondaryVisibleActions, { actions: secondaryVisible, size: size })), main && ((0, jsx_runtime_1.jsx)(MainActions_1.MainActions, { isDisabled: disabledAction, actions: main, size: size }))] }));
};
exports.ActionGroup = ActionGroup;
