import { atom } from "jotai"; import { atomWithStorage } from "jotai/utils"; export const customModelsPathAtom = atomWithStorage( "customModelsPath", null ); export const scaleAtom = atomWithStorage<"2" | "3" | "4">("scale", "4"); export const batchModeAtom = atom(false); export const outputPathAtom = atom(""); export const progressAtom = atom(""); export const rememberOutputFolderAtom = atomWithStorage( "rememberOutputFolder", false ); export const dontShowCloudModalAtom = atomWithStorage( "dontShowCloudModal", false ); export const noImageProcessingAtom = atomWithStorage( "noImageProcessing", false ); export const compressionAtom = atomWithStorage("compression", 0); export const overwriteAtom = atomWithStorage("overwrite", false);