"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
const MacroConfigurableFieldEditor_1 = require("../lib/MacroConfigurableFieldEditor/MacroConfigurableFieldEditor");
const InlineValueEditor = function InlineValueEditor(props) {
    const { value, onChange, ports } = props;
    return (react_1.default.createElement("div", null,
        react_1.default.createElement(MacroConfigurableFieldEditor_1.MacroConfigurableFieldEditor, { value: value.value, onChange: (newVal) => onChange({ value: newVal }), config: {
                type: "string",
                label: "Value",
                configKey: "value",
            }, ports: ports })));
};
exports.default = InlineValueEditor;
