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 Image from "next/image"; import Link from "next/link"; function ItemAppointment({ turn, loading }) { return (
  • نوبت دهی

    doctor

    {turn?.name}

    تخصص: {turn?.specialties?.map( (item, idx) => `${item.name} ${turn.specialties.length === idx + 1 ? "" : "|"} ` )}

    {turn?.free_turn ? `اولین نوبت آزاد: ${turn?.free_turn}` : "نوبت ندارد"}

  • ); } export default ItemAppointment;