"use client"; import { Button } from "@mui/material"; import ItemAppointment from "./ItemAppointment"; import ArrowLeftD from "@/components/icons/ArrowLeftD"; import Link from "next/link"; import { bookingState } from "./bookingState"; function AppointmentList({ doctor, loading, doctorSlug, bookingLocations = [], bookingResources = [] }) { const booking = bookingState(doctor, bookingLocations, bookingResources); return ( <>
{booking.label}
{!booking.enabled ? ( ) : ( )}