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