aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/client/atoms/index.ts
blob: 1e132220bbc85783a9ce2ec6eee998dd845d383b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Auth atoms
export { SyncStatus } from "../sync";
export {
	authLoadingAtom,
	isAuthenticatedAtom,
	loginAtom,
	logoutAtom,
	useAuthInit,
	userAtom,
} from "./auth";

// Cards atoms
export { type Card, cardsByDeckAtomFamily } from "./cards";

// Decks atoms
export { type Deck, deckByIdAtomFamily, decksAtom } from "./decks";

// NoteTypes atoms
export { type NoteType, noteTypesAtom } from "./noteTypes";

// Study atoms
export {
	type StudyCard,
	type StudyData,
	type StudyDeck,
	studyDataAtomFamily,
} from "./study";

// Sync atoms
export {
	isOnlineAtom,
	isSyncingAtom,
	lastErrorAtom,
	lastSyncAtAtom,
	pendingCountAtom,
	syncActionAtom,
	syncStatusAtom,
	useSyncInit,
} from "./sync";

// Utilities
export { createReloadableAtom, createReloadableAtomFamily } from "./utils";