import { jsx as _jsx } from "react/jsx-runtime";
import { StringField } from '../../../scalars/components/string-field/index.js';
import { normalizeStringValue } from './utils.js';
export const buildStringCellEditor = (stringFieldProps) => {
    const StringCellEditor = (value, onChange, context) => {
        const stringValue = normalizeStringValue(value);
        return (_jsx(StringField, { name: context.column.field, className: "max-w-full", autoFocus: true, ...stringFieldProps, value: stringValue, onChange: (e) => {
                onChange(e.target.value);
            } }));
    };
    return StringCellEditor;
};
//# sourceMappingURL=string-editor.js.map