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 = atomWithStorage( "lastOutputFolderPath", null, ); 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); export const turnOffNotificationsAtom = atomWithStorage( "turnOffNotifications", false, ); export const viewTypeAtom = atomWithStorage<"slider" | "lens">( "viewType", "lens", ); export const lensSizeAtom = atomWithStorage("lensSize", 100); export const customWidthAtom = atomWithStorage( "customWidth", null, ); export const useCustomWidthAtom = atomWithStorage( "useCustomWidth", false, );