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