"use client" import { createContext, useContext } from "react" type AppointmentContextValue = { id: string label: string } const AppointmentContext = createContext(null) export function AppointmentProvider({ appointment, children, }: { appointment: AppointmentContextValue children: React.ReactNode }) { return ( {children} ) } export function useAppointment() { return useContext(AppointmentContext) }