"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TextFieldSettings = void 0;
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const React = tslib_1.__importStar(require("react"));
const uikit_1 = require("@gravity-ui/uikit");
const Row_1 = require("./Row.js");
const TextFieldSettings = ({ field, updateField, commonRows, whenEditorSection, }) => ((0, jsx_runtime_1.jsxs)(React.Fragment, { children: [commonRows, (0, jsx_runtime_1.jsx)(Row_1.Row, { label: "Default", children: (0, jsx_runtime_1.jsx)(uikit_1.TextInput, { value: field.defaultValue ?? '', onUpdate: (value) => updateField(field.id, { defaultValue: value || undefined }), placeholder: "Default value" }) }), whenEditorSection] }));
exports.TextFieldSettings = TextFieldSettings;
//# sourceMappingURL=TextFieldSettings.js.map
