import { isEqual } from "lodash-es";
import { useStoreSelector } from "@dynatrace/strato-components-preview/core";
import { MapStore } from "./map-store.context.js";
const useSelector = (selector) => useStoreSelector(MapStore, selector, isEqual);
const useMapSelectionState = () => useSelector(({ selection }) => selection);
const useMapTooltipState = () => useSelector(({ tooltip }) => {
  const { pinned, ...tooltipState } = tooltip;
  return tooltipState;
});
const useMapTooltipPinnedState = () => useSelector(({ tooltip }) => {
  const { pinned } = tooltip;
  return pinned;
});
const useMapOverlayState = () => useSelector(({ overlay }) => overlay);
export {
  useMapOverlayState,
  useMapSelectionState,
  useMapTooltipPinnedState,
  useMapTooltipState,
  useSelector
};
//# sourceMappingURL=selectors.js.map
