import { jsx as _jsx } from "react/jsx-runtime";
import { CountryCodeField } from '../../../scalars/components/country-code-field/index.js';
export const buildCountryCellEditor = (countryFieldProps) => {
    const CountryCellEditor = (value, onChange, context) => {
        const countryValue = typeof value === 'string' ? value : String(value ?? '');
        return (_jsx(CountryCodeField, { name: context.column.field, className: "max-w-full", autoFocus: true, ...countryFieldProps, value: countryValue, onChange: (value) => {
                onChange(value);
            } }));
    };
    return CountryCellEditor;
};
//# sourceMappingURL=country-editor.js.map