import type { TFunction } from "i18next";

/** Watch later is a built-in playlist whose stored `name` is not translatable — show the localized
 * label instead. Was hand-inlined in Playlists, PlaylistsRail and AddToPlaylist; one copy now. */
export function playlistName(p: { kind: string; name: string }, t: TFunction): string {
  return p.kind === "watch_later" ? t("playlists.watchLater") : p.name;
}
