const CATEGORY_BY_TYPE = {
  meeting: "meeting",
  call: "meeting",
  "video-call": "meeting",
  event: "event",
  webinar: "event",
  task: "task",
  todo: "task",
  deadline: "task"
};
function categoryOf(interactionType) {
  return CATEGORY_BY_TYPE[interactionType] ?? "other";
}
function countByCategory(items) {
  let meetings = 0;
  let events = 0;
  for (const item of items) {
    if (item.category === "meeting") meetings += 1;
    else if (item.category === "event") events += 1;
  }
  return { all: items.length, meetings, events };
}
export {
  CATEGORY_BY_TYPE,
  categoryOf,
  countByCategory
};
//# sourceMappingURL=categories.js.map
