import { jsx as _jsx } from "react/jsx-runtime";
import { PHIDField } from '../../../scalars/components/phid-field/phid-field.js';
export const buildPhidCellEditor = (phidFieldProps) => {
    const PhidCellEditor = (value, onChange, context) => {
        const phidValue = typeof value === 'string' ? value : String(value ?? '');
        return (_jsx(PHIDField, { name: context.column.field, className: "max-w-full", autoFocus: true, autoComplete: false, allowUris: false, ...phidFieldProps, value: phidValue, onChange: (value) => {
                onChange(value);
            } }));
    };
    return PhidCellEditor;
};
//# sourceMappingURL=phid-editor.js.map