import { Popup } from "react-map-gl";

export const PopupWrapper = ({ lat, lng, onClose, children }) => {
  return (
    <Popup
      longitude={lng}
      latitude={lat}
      onClose={onClose}
      closeOnClick={false}
      style={{ minWidth: "330px" }}
    >
      {children}
    </Popup>
  );
};
