{/* Current booking */}
{(currentDate || currentTimeStart) && (
Current booking
{currentDate && (
{currentDate}
)}
{currentTimeStart && (
{currentTimeStart}
{currentTimeEnd ? ` – ${currentTimeEnd}` : ""}
)}
)}
{/* Date picker */}
{
setDate(d);
setSlot(undefined);
if (d) onDateChange?.(d);
}}
captionLayout="label"
fromDate={today}
disabled={
disabledDayOfWeek && disabledDayOfWeek.length > 0
? [{ before: today }, { dayOfWeek: disabledDayOfWeek }]
: { before: today }
}
className="border border-border"
/>
{/* Time slots */}
{date ? (
isLoadingSlots ? (
Loading slots…
Fetching available times for the selected date.
) : (
<>
Select a time slot
{totalAvailable} available
>
)
) : (
Select a time slot
Pick a date on the left to see available slots.
)}
{/* Note — full width */}