import type { Page } from "./urlState";

// The i18n key for a page's human title — shared by the top-bar header and the browser tab title
// so the two never drift. Keep in sync with the nav modules in NavSidebar / App's page switch.
export function pageTitleKey(page: Page): string {
  switch (page) {
    case "feed":
      return "header.account.feed";
    case "channels":
      return "header.channelManager";
    case "playlists":
      return "header.account.playlists";
    case "notifications":
      return "inbox.navLabel";
    case "messages":
      return "messages.navLabel";
    case "downloads":
      return "downloads.navLabel";
    case "stats":
      return "header.usageStats";
    case "plex":
      return "plex.navLabel";
    case "scheduler":
      return "header.scheduler";
    case "config":
      return "header.configuration";
    case "users":
      return "header.users";
    case "audit":
      return "audit.title";
    case "settings":
      return "settings.title";
    default:
      return "header.account.feed";
  }
}
