export const NOTIFICATION_TYPES = {
  approval: {
    title: "Approval needed",
    priority: 30,
    clickAction: "open-session",
    rowTone: "notification"
  },
  completed: {
    title: "Response complete",
    priority: 20,
    clickAction: "open-session",
    rowTone: "notification"
  },
  failed: {
    title: "Work failed",
    priority: 25,
    clickAction: "open-session",
    rowTone: "notification"
  },
  interrupted: {
    title: "Work stopped",
    priority: 25,
    clickAction: "open-session",
    rowTone: "notification"
  },
  "usage-critical": {
    title: "Usage critical",
    priority: 35,
    clickAction: "dismiss",
    rowTone: ""
  },
  "usage-exhausted": {
    title: "Usage exhausted",
    priority: 40,
    clickAction: "open-session",
    rowTone: "notification"
  },
  "usage-low": {
    title: "Usage low",
    priority: 15,
    clickAction: "dismiss",
    rowTone: ""
  },
  "weekly-reset": {
    title: "Weekly usage reset",
    priority: 10,
    clickAction: "dismiss",
    rowTone: ""
  }
};

export function notificationTitle(type) {
  return NOTIFICATION_TYPES[type]?.title ?? "Notifications";
}

export function notificationPriority(type) {
  return NOTIFICATION_TYPES[type]?.priority ?? 0;
}

export function notificationClickAction(type) {
  return NOTIFICATION_TYPES[type]?.clickAction ?? "dismiss";
}

export function notificationRowTone(type) {
  return NOTIFICATION_TYPES[type]?.rowTone ?? "";
}
