UNPKG

urbi-exhibitions

Version:
30 lines (29 loc) 887 B
import { C as v, G as c, u as m, a as C } from "../geolocationContext-CrlpiBBb.js"; import { E as f, u as g } from "../exhibitionContext-C8CeOMRn.js"; import { M as A, u as R } from "../mapContext-C4SIZcBe.js"; import { jsx as i } 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: e }) => /* @__PURE__ */ i(t.Provider, { value: e, children: o }); s.displayName = "RoutingApiProvider"; export { v as ClockProvider, f as ExhibitionContextProvider, c as GeolocationProvider, A as MapProvider, s as RoutingApiProvider, m as useClockContext, g as useExhibitionContext, C as useGeolocation, R as useMap, p as useRoutingApi };