"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var dropdown_1 = __importDefault(require("../../dropdown"));
var menu_1 = __importDefault(require("../../menu"));
var icon_1 = __importDefault(require("../../icon"));
var DropdownActions = function (_a) {
    var actions = _a.actions;
    var actionIcon = (function () {
        return react_1.default.createElement(icon_1.default, { type: "ellipsis-vertical", size: "small" });
    })();
    return (react_1.default.createElement(dropdown_1.default, { trigger: actionIcon, triggerType: "click" },
        react_1.default.createElement(menu_1.default, null, actions.map(function (_a, i) {
            var label = _a.label, onClick = _a.onClick;
            return react_1.default.createElement(menu_1.default.Item, { onClick: onClick, key: i }, label);
        }))));
};
exports.default = DropdownActions;
