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}