import { jsx as _jsx } from "react/jsx-runtime";
import { OIDField } from '../../../scalars/components/oid-field/oid-field.js';
export const buildOidCellEditor = (oidFieldProps) => {
    const OidCellEditor = (value, onChange, context) => {
        const oidValue = typeof value === 'string' ? value : String(value ?? '');
        return (_jsx(OIDField, { name: context.column.field, className: "max-w-full", autoFocus: true, autoComplete: false, ...oidFieldProps, value: oidValue, onChange: (value) => {
                onChange(value);
            } }));
    };
    return OidCellEditor;
};
//# sourceMappingURL=oid-editor.js.map