2022-08-16 00:01:54 +02:00
|
|
|
import { atom } from "recoil";
|
2022-11-24 20:44:47 +01:00
|
|
|
import { MeUser } from "./api-fetch";
|
2022-08-16 00:01:54 +02:00
|
|
|
|
|
|
|
export const userState = atom<MeUser | null>({
|
|
|
|
key: "userState",
|
|
|
|
default: null,
|
|
|
|
});
|
2022-12-22 15:43:10 +01:00
|
|
|
|
|
|
|
export const themeState = atom<boolean>({
|
|
|
|
key: "themeState",
|
|
|
|
default: false,
|
|
|
|
});
|