import { atom } from "jotai";
import type {
  SavedServer,
  SavedServerAccount,
} from "@/utils/secureCredentials";

export type TVAccountSelectModalState = {
  server: SavedServer;
  onAccountAction: (account: SavedServerAccount) => void;
  onAddAccount: () => void;
  onDeleteServer: () => void;
} | null;

export const tvAccountSelectModalAtom = atom<TVAccountSelectModalState>(null);
