import { createContext, useContext } from "solid-js";

/**
 * Context published by `<Tooltip.Provider>` so descendant tooltips can read
 * the provider-level default open/close delays. `FloatingDelayGroup` handles
 * the shared delay-ref and instant-phase coordination; this context carries
 * only the raw `delay` / `closeDelay` values so triggers can compute their
 * `restMs` overrides the same way React does.
 */

/**
 * Solid 2's `useContext` throws `ContextNotFoundError` when the resolved
 * value is `undefined`, so the sentinel for "no provider mounted" is `null`
 * instead (matches the pattern used in `floating-tree.tsx`).
 */
export const TooltipProviderContext = createContext(null);
export function useTooltipProviderContext() {
  return useContext(TooltipProviderContext);
}
//# sourceMappingURL=tooltip-provider-context.jsx.map
