feat(tv): add user switching from settings

This commit is contained in:
Fredrik Burmester
2026-01-31 09:53:54 +01:00
parent bf518b4834
commit 6e85c8d54a
10 changed files with 562 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
import { atom } from "jotai";
import type { SavedServerAccount } from "@/utils/secureCredentials";
export type TVUserSwitchModalState = {
serverUrl: string;
serverName: string;
accounts: SavedServerAccount[];
currentUserId: string;
onAccountSelect: (account: SavedServerAccount) => void;
} | null;
export const tvUserSwitchModalAtom = atom<TVUserSwitchModalState>(null);