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