Spaces:
Paused
Paused
File size: 816 Bytes
0e759d2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import { NotificationType } from "../../types";
// depending on the notification type, return the appropriate string
export function getNotificationString(
notificationType: NotificationType,
): string {
switch (notificationType) {
case NotificationType.APPROACHING_LIMIT:
return "Approaching the limit (80%)";
case NotificationType.LIMIT_REACHED:
return "Limit reached (100%)";
case NotificationType.RATE_LIMIT_REACHED:
return "Rate limit reached";
case NotificationType.AUTO_RECHARGE_SUCCESS:
return "Auto-recharge successful";
case NotificationType.AUTO_RECHARGE_FAILED:
return "Auto-recharge failed";
case NotificationType.CONCURRENCY_LIMIT_REACHED:
return "Concurrency limit reached";
default:
return "Unknown notification type";
}
}
|