"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const config_adapter_1 = require("../config-adapter");
function TextComponentAdapter(input) {
    const type = input.accessor.value('GUI_renderType', 'string');
    const { accessor, variable, extraOptions } = input;
    let buttonActions = config_adapter_1.parseButtonActions(accessor.value('GUI_listChoices', 'string', ''));
    let buttonsComponent = {
        editable: extraOptions.editable,
        type: 'VariableButtons',
        unit: variable.unit,
        variable: `${variable.name}`,
        actions: buttonActions
    };
    return buttonsComponent;
}
exports.default = TextComponentAdapter;
//# sourceMappingURL=ChoicesAdapter.js.map