import { jsx as _jsx } from "react/jsx-runtime";
import { TimePickerField } from '../../../scalars/components/time-picker-field/index.js';
export const buildTimeCellEditor = (timeFieldProps) => {
    const TimeCellEditor = (value, onChange, context) => {
        const timeValue = typeof value === 'string' ? value : String(value ?? '');
        return (_jsx(TimePickerField, { name: context.column.field, className: "max-w-full", autoFocus: true, ...timeFieldProps, value: timeValue, onChange: (e) => {
                onChange(e.target.value);
            } }));
    };
    return TimeCellEditor;
};
//# sourceMappingURL=time-editor.js.map