"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.TaskActions = void 0;
var react_1 = __importDefault(require("react"));
var MoreVert_1 = __importDefault(require("@mui/icons-material/MoreVert"));
var DropDownMenuButton_1 = require("../../../DropDownMenuButton");
var SmallIconButton_1 = require("../../../SmallIconButton");
var TaskActions = function (_a) {
    var actions = _a.actions, disabled = _a.isInProgress;
    return actions.length > 0 ? (react_1.default.createElement(DropDownMenuButton_1.DropDownMenuButton, { buttonComponent: SmallIconButton_1.SmallIconButton, buttonProps: {
            icon: MoreVert_1.default,
            size: 'L',
            disabled: disabled,
            'data-reltio-id': 'task-actions'
        }, menuId: 'workflow-actions', menuItems: actions })) : null;
};
exports.TaskActions = TaskActions;
