import { jsx as _jsx } from "react/jsx-runtime";
import { StringField } from '../../../scalars/components/string-field/string-field.js';
export const buildStringCellEditor = (stringFieldProps) => {
    const StringCellEditor = (value, onChange, context) => {
        const stringValue = typeof value === 'string' ? value : String(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