import { jsx as _jsx } from "react/jsx-runtime";
import { CodeField } from '../../components/CodeField';
import { useFormFieldProps } from '../useFormFieldProps';
/**
 * Адаптер для CodeField
 */
export const FormCodeField = (props) => {
    const { errorText, isError, ...withoutErrorProps } = props;
    const { error, helperText, onChange, value, ...fieldProps } = useFormFieldProps(withoutErrorProps);
    return (_jsx(CodeField, { isError: error, errorText: helperText, onChange: onChange, initialValue: value, ...fieldProps }));
};
