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