import Date from "./date"; import ServiceSelect from "./service"; import LocationSelect from "./location/LocationSelect"; // Components import Content from "./Content"; import Layout from "@/components/layout"; import Paying from "@/components/appointment/paying"; import Detail from "@/components/appointment/detail"; import FailedPay from "@/components/appointment/failedPay"; import SuccessPay from "@/components/appointment/successPay"; import LogInPage from "@/components/register/LogInPage"; import VerificationPage from "@/components/register/verificationPage"; import LayoutRegister from "@/components/register/LayoutRegister"; function Container({ step, data, doctor, setData, setStep, prevData, matchedCity, isForAnother, setIsForAnother, disabledDates, // Login states num, setNum, uuid, setUuid, isSendMsg, setIsSendMsg, // Appointment slot states selectedSlot, setSelectedSlot, selectedDate, setSelectedDate, appointmentId, setAppointmentId, appointmentExpiresAt, setAppointmentExpiresAt, // Service-based booking bookingMode, bookingServices, selectedServiceUuids, setSelectedServiceUuids, // Booking location (مطب شخصی / کلینیک) bookingLocations, selectedLocation, locationConfirmed, changeLocation, reopenLocationChoice, }) { const serviceMode = bookingMode === "service"; const clinicUuid = selectedLocation?.clinic_uuid ?? null; const multiLocation = bookingLocations.length > 1; let dateStep; if (bookingLocations.length === 0) { dateStep = (
نوبتدهی آنلاین برای این پزشک فعال نیست.
); } else if (multiLocation && !locationConfirmed) { dateStep = (