import React, { useRef } from "react";
import {
  createStore
} from "@dynatrace/strato-components-preview/core";
import { initialState, MapStore } from "./map-store.context.js";
const MapStoreProvider = ({ children }) => {
  const storeRef = useRef();
  storeRef.current = createStore(initialState);
  return /* @__PURE__ */ React.createElement(MapStore.Provider, { value: storeRef.current }, children);
};
export {
  MapStoreProvider
};
//# sourceMappingURL=map-store.provider.js.map
