// =========================================================
// FILE: notification-badge.js | TYPE: Badge Helper
// =========================================================

export function updateNotificationBadge(count) {
  const badge = document.getElementById("notificationBadge");

  if (!badge) return;

  if (!count || count <= 0) {
    badge.textContent = "0";
    badge.classList.add("hidden");
    return;
  }

  badge.textContent = count > 99 ? "99+" : String(count);
  badge.classList.remove("hidden");
}