"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ActionColumnApiImpl = void 0;
const ApiBase_1 = require("./ApiBase");
const ActionColumnInternalApi_1 = require("../Internal/ActionColumnInternalApi");
class ActionColumnApiImpl extends ApiBase_1.ApiBase {
    constructor(_adaptable) {
        super(_adaptable);
        this.internalApi = new ActionColumnInternalApi_1.ActionColumnInternalApi(_adaptable);
    }
    getActionColumns() {
        return this.getActionColumnOptions().actionColumns ?? [];
    }
    getActionColumnForColumnId(columnId) {
        return this.getActionColumns().find((ac) => ac.columnId === columnId);
    }
}
exports.ActionColumnApiImpl = ActionColumnApiImpl;
