13 lines
418 B
TypeScript
13 lines
418 B
TypeScript
import { atom } from "jotai";
|
|
import { atomWithStorage } from "jotai/utils";
|
|
import { FeedItem } from "./components/Feed/FeedItem";
|
|
|
|
export const gameIdAtom = atom<string | undefined>(undefined);
|
|
export const loginTokenAtom = atomWithStorage<string | undefined>(
|
|
"loginToken",
|
|
undefined,
|
|
);
|
|
export const cursorXAtom = atom(0);
|
|
export const cursorYAtom = atom(0);
|
|
export const feedItemsAtom = atom<FeedItem[]>([]);
|