import { jsx as _jsx } from "react/jsx-runtime";
import { EmailField } from '../../../scalars/components/email-field/email-field.js';
export const buildEmailCellEditor = (emailFieldProps) => {
    const EmailCellEditor = (value, onChange, context) => {
        const emailValue = typeof value === 'string' ? value : String(value ?? '');
        return (_jsx(EmailField, { name: context.column.field, className: "max-w-full", autoFocus: true, ...emailFieldProps, value: emailValue, onChange: (e) => {
                onChange(e.target.value);
            } }));
    };
    return EmailCellEditor;
};
//# sourceMappingURL=email-editor.js.map