{t('hiddenMessage')}
{t('loadingAppointments')}
)}{t('emptyDay')}
)} {appointments.map((a) => { const sel = a.id === selectedAppointmentId; const start = new Date(a.startAt); const end = new Date(a.endAt); const timeLabel = `${start.toLocaleTimeString(undefined, { hour: 'numeric', minute: '2-digit', })} – ${end.toLocaleTimeString(undefined, { hour: 'numeric', minute: '2-digit', })}`; const palette = purposeStyle(a.purpose); const purposeKey = TREATMENT_TYPE_KEYS[a.purpose as keyof typeof TREATMENT_TYPE_KEYS]; return ({timeLabel}
{a.patientFirstName} {a.patientLastName}
{purposeKey ? t(purposeKey) : a.purpose}