export default function handleCloseLastOpenedGroup() {
  let data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  const groupPopups = data.length ? popups[data[0]] || [] : [];
  data.splice(0, 1);
  groupPopups.forEach(popup => {
    popup.isPopupOpen && popup.ref.cancel();
  });
}