"use client"; import { Label } from "./ui/label"; import DatePicker from 'react-datepicker'; import { cn } from '../utils/cn'; interface DateTimePickerProps { value?: Date; onChange: (date: Date | null) => void; disabled?: boolean; label?: string; placeholder?: string; className?: string; showTimeSelect?: boolean; timeFormat?: string; timeIntervals?: number; dateFormat?: string; } // Shared input styling that matches Input component pattern const inputClassName = cn( "flex h-10 w-full rounded-md border px-3 py-2 text-sm ring-offset-background", "file:border-0 file:bg-transparent file:text-sm file:font-medium", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2", "disabled:cursor-not-allowed disabled:opacity-50 touch-manipulation", // Admin theme colors "bg-ods-card border-ods-border text-ods-text-primary", "placeholder:text-ods-text-muted focus-visible:ring-ods-accent", "md:text-sm text-base" // Mobile zoom prevention ); export function DateTimePicker({ value, onChange, disabled = false, label, placeholder = "Select date and time", className, showTimeSelect = true, timeFormat = "HH:mm", timeIntervals = 15, dateFormat = "MMMM d, yyyy h:mm aa" }: DateTimePickerProps) { return (