1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-28 09:20:52 +01:00
upscayl/renderer/atoms/userSettingsAtom.ts
2023-04-21 00:04:49 +05:30

16 lines
402 B
TypeScript

import { atomWithStorage } from "jotai/utils";
export const customModelsPathAtom = atomWithStorage<string | null>(
"customModelsPath",
null
);
export const scaleAtom = atomWithStorage<"2" | "3" | "4">("scale", "4");
export const batchModeAtom = atomWithStorage<boolean>("batchMode", false);
export const rememberOutputFolderAtom = atomWithStorage<boolean>(
"rememberOutputFolder",
false
);