import removeClose from "./removeClose";
import { popOut } from "../Popper.manage";
export default function closePopupOnly(isPopupOpen, cancelGloabl, e) {
  removeClose(e);
  popOut();

  if (isPopupOpen) {
    cancelGloabl();
  }
}