AcadeDoc/frontend/src/features/user/atoms/current-user-atom.ts
Philipinho 2689b267cf sidebar page tree
* frontend and backend implementation
2023-10-15 01:01:17 +01:00

5 lines
220 B
TypeScript

import { atomWithStorage } from "jotai/utils";
import { ICurrentUserResponse } from "@/features/user/types/user.types";
export const currentUserAtom = atomWithStorage<ICurrentUserResponse | null>("currentUser", null);