import type { PxOffset } from "@components/PageComponents/Map/cluster.ts"; import type { WaypointWithMetadata } from "@core/stores"; import { memo } from "react"; import { Popup } from "react-map-gl/maplibre"; export type PopupState = | { type: "node"; num: number; offset: PxOffset } | { type: "waypoint"; waypoint: WaypointWithMetadata }; export const PopupWrapper = memo(function SelectedNodePopup({ lng, lat, offset, onClose, children, }: { lng: number; lat: number; offset?: PxOffset; onClose: () => void; children: React.ReactNode; }) { return ( {children} ); });