import { jsx as _jsx } from "react/jsx-runtime";
import { DateTimePickerField, } from '../../../scalars/components/date-time-picker-field/index.js';
export const buildDateTimeCellEditor = (dateTimePickerFieldProps) => {
    const DateTimeCellEditor = (value, onChange, context) => {
        const dateTimeValue = value ? String(value) : '';
        return (_jsx(DateTimePickerField, { name: context.column.field, className: "max-w-full", ...dateTimePickerFieldProps, value: dateTimeValue, onChange: (e) => {
                onChange(e.target.value);
            } }));
    };
    return DateTimeCellEditor;
};
//# sourceMappingURL=datetime-editor.js.map