'use client'; import { formatDateForDateTimeInput, parseDateTimeInput } from '@/lib/date-utils'; interface DateTimeInputProps { value?: Date; onChange: (date: Date | undefined) => void; placeholder?: string; disabled?: boolean; className?: string; onFocus?: () => void; } export function DateTimeInput({ value, onChange, placeholder, disabled = false, className = '', onFocus }: DateTimeInputProps) { const handleChange = (e: React.ChangeEvent) => { const newValue = e.target.value ? parseDateTimeInput(e.target.value) : undefined; onChange(newValue); }; return ( ); }