import removeClose from "./removeClose";
import lastOpenedGroupFunc from "./getLastOpenedGroup";
export default function openPopupOnly(e, defaultPosition, groupName) {
  const group = groupName;
  removeClose(e);
  lastOpenedGroup = lastOpenedGroupFunc().indexOf(group) === -1 ? [group, ...lastOpenedGroupFunc()] : lastOpenedGroupFunc();
  handlePopupPosition(defaultPosition);
}