import CircularLoading from "@/app/component/loading/Circular"; import TextLoading from "@/app/component/loading/Text"; import ArrowLeftD from "@/components/icons/ArrowLeftD"; import GreenCalendarTurn from "@/components/icons/GreenCalendarTurn"; import { Button } from "@mui/material"; import Link from "next/link"; import DoctorAvatar from "@/app/component/DoctorAvatar"; import SpecialtyChips from "@/app/component/SpecialtyChips"; import { bookingState } from "./bookingState"; function ItemAppointment({ turn, loading, doctorSlug, booking }) { const state = booking ?? bookingState(turn, []); const bookingDisabled = !loading && !state.enabled; return (
  • نوبت دهی

    {turn?.name}

    {/* ستون نوبت‌دهی باریک است؛ همان الگوی کارت پزشک — تخصص اصلی و شمارندهٔ بقیه — تا شش نام پشت‌سرهم ارتفاعش را چند برابر نکند. */}

    {state.label}

    {bookingDisabled ? ( ) : ( )}
  • ); } export default ItemAppointment;