'use client'; import { ChevronLeft, ChevronRight } from 'lucide-react'; import { addCalendarDays } from '@/lib/appointmentTime'; interface ScheduleDayPickerProps { value: Date; onChange: (day: Date) => void; /** Optional lower bound; picker navigation is unrestricted for history browsing. */ minDate?: Date; label?: string; } export function ScheduleDayPicker({ value, onChange, label = 'Schedule date' }: ScheduleDayPickerProps) { const labelText = value.toLocaleDateString(undefined, { weekday: 'short', month: 'short', day: 'numeric', year: 'numeric', }); return (

{label}

{labelText}
); }