Files
sofa/lib/atoms/title.ts
T
jake a7b3600d15 Flatten lib/types/title.ts → lib/types.ts and update all imports
- Rename `lib/types/title.ts` → `lib/types.ts` (remove nested directory)
- Update all imports across services, atoms, components, and utils
  from `@/lib/types/title` to `@/lib/types`
2026-03-08 12:26:00 -04:00

12 lines
464 B
TypeScript

import { atom } from "jotai";
import type { Season } from "@/lib/types";
export const titleIdAtom = atom("");
export const titleTypeAtom = atom<"movie" | "tv">("movie");
export const titleNameAtom = atom("");
export const seasonsAtom = atom<Season[]>([]);
export const userStatusAtom = atom<string | null>(null);
export const userRatingAtom = atom(0);
export const episodeWatchesAtom = atom<string[]>([]);
export const watchingEpAtom = atom<string | null>(null);