"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FormCodeField = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const CodeField_1 = require("../../components/CodeField");
const useFormFieldProps_1 = require("../useFormFieldProps");
/**
 * Адаптер для CodeField
 */
const FormCodeField = (props) => {
    const { errorText, isError, ...withoutErrorProps } = props;
    const { error, helperText, onChange, value, ...fieldProps } = (0, useFormFieldProps_1.useFormFieldProps)(withoutErrorProps);
    return ((0, jsx_runtime_1.jsx)(CodeField_1.CodeField, { isError: error, errorText: helperText, onChange: onChange, initialValue: value, ...fieldProps }));
};
exports.FormCodeField = FormCodeField;
