// Persistent playback settings of the YouTube modal player (stored in users.preferences). // Auto-advance = what plays when a video ends; loop = whether it repeats the current video ("one"), // wraps the list at its ends ("all"), or neither ("off"). Both apply to any queued player (feed or // playlist). // // Here rather than in `components/playerModalControls` because `lib/playerModalHooks` reads them // too, and `lib/` may not import from `components/` (lint-enforced, see eslint.config.js). export type AutoMode = "off" | "next" | "prev" | "random"; export type LoopMode = "off" | "one" | "all"; export const AUTO_MODES: AutoMode[] = ["off", "next", "prev", "random"]; export const LOOP_MODES: LoopMode[] = ["off", "one", "all"];