Files
streamyfin/utils/atoms/tvAccountSelectModal.ts
2026-01-29 12:12:20 +01:00

15 lines
417 B
TypeScript

import { atom } from "jotai";
import type {
SavedServer,
SavedServerAccount,
} from "@/utils/secureCredentials";
export type TVAccountSelectModalState = {
server: SavedServer;
onAccountSelect: (account: SavedServerAccount) => void;
onAddAccount: () => void;
onDeleteAccount: (account: SavedServerAccount) => void;
} | null;
export const tvAccountSelectModalAtom = atom<TVAccountSelectModalState>(null);