function addPage(items, page) {
  if (!items.find(p => p.id === page.id)) {
    items.push(page);
  }
  return items;