2023-09-09 13:03:16 +02:00
|
|
|
import { atom } from "jotai";
|
2023-04-09 07:16:15 +02:00
|
|
|
import { atomWithStorage } from "jotai/utils";
|
|
|
|
|
|
|
|
export const customModelsPathAtom = atomWithStorage<string | null>(
|
|
|
|
"customModelsPath",
|
|
|
|
null
|
|
|
|
);
|
2023-04-14 12:31:37 +02:00
|
|
|
export const scaleAtom = atomWithStorage<"2" | "3" | "4">("scale", "4");
|
2023-09-09 13:03:16 +02:00
|
|
|
export const batchModeAtom = atom<boolean>(false);
|
2023-11-10 12:41:35 +01:00
|
|
|
export const outputPathAtom = atom<string | null>("");
|
|
|
|
export const progressAtom = atom<string>("");
|
2023-04-16 04:39:38 +02:00
|
|
|
|
2023-04-20 20:34:49 +02:00
|
|
|
export const rememberOutputFolderAtom = atomWithStorage<boolean>(
|
|
|
|
"rememberOutputFolder",
|
|
|
|
false
|
|
|
|
);
|
2023-09-03 11:16:48 +02:00
|
|
|
|
|
|
|
export const dontShowCloudModalAtom = atomWithStorage<boolean>(
|
|
|
|
"dontShowCloudModal",
|
|
|
|
false
|
|
|
|
);
|
2023-09-18 20:30:43 +02:00
|
|
|
|
|
|
|
export const noImageProcessingAtom = atomWithStorage<boolean>(
|
|
|
|
"noImageProcessing",
|
|
|
|
false
|
|
|
|
);
|
2023-11-22 16:57:44 +01:00
|
|
|
|
|
|
|
export const compressionAtom = atomWithStorage<number>("compression", 0);
|
2024-01-15 10:07:22 +01:00
|
|
|
|
|
|
|
export const overwriteAtom = atomWithStorage("overwrite", false);
|