import type { CSSProperties, ReactNode } from 'react'; import { formatDate, formatTime } from '../lib/utils'; import { FilesServiceSuccess, FilesServiceMore, CalendarD, ClockP, UserD, StatusGlobe, } from './icons/FilesServiceIcons'; import AppointmentStatusDropdown from './ui/AppointmentStatusDropdown'; export interface AppointmentCardData { uuid: string; starts_at: number; status: string; version: number; doctor_name?: string | null; service_name?: string | null; } /** * label/value row inside the turn card — mirrors tauri ServiceInfoRow * (separatedValues variant): icon+label on one side, value (optionally chip) on * the other. */ function InfoRow({ icon, label, value, chip = false, valueStyle }: { icon: ReactNode; label: string; value: ReactNode; chip?: boolean; valueStyle?: CSSProperties; }) { return (