UNPKG

urbi-exhibitions

Version:
29 lines (28 loc) 835 B
import { C as v, G as c, M as C, u as m, a as P, b as f } from "../mapContext-IRKlk7O4.js"; import { E as l, u as A } from "../exhibitionContext-C8CeOMRn.js"; import { jsx as e } from "react/jsx-runtime"; import { createContext as r, useContext as n } from "react"; const t = r(void 0); function p() { const o = n(t); if (o === void 0) throw new Error("useRoutingApi must be used within an RoutingApiProvider"); return o; } const s = ({ children: o, routingApi: i }) => /* @__PURE__ */ e(t.Provider, { value: i, children: o }); s.displayName = "RoutingApiProvider"; export { v as ClockProvider, l as ExhibitionContextProvider, c as GeolocationProvider, C as MapProvider, s as RoutingApiProvider, m as useClockContext, A as useExhibitionContext, P as useGeolocation, f as useMap, p as useRoutingApi };