import { useCustomWidthAtom } from "@/atoms/userSettingsAtom"; import { useAtom } from "jotai"; type ImageScaleSelectProps = { scale: "4" | "2" | "3"; setScale: (arg: "4" | "2" | "3") => void; }; export function ImageScaleSelect({ scale, setScale }: ImageScaleSelectProps) { const [useCustomWidth, setUseCustomWidth] = useAtom(useCustomWidthAtom); return (
IMAGE SCALE ({scale}X) {useCustomWidth && "DISABLED"}
Anything above 4X (except 16X Double Upscayl) only resizes the image and does not use AI upscaling.
{ setScale(e.target.value.toString()); }} step="1" className="range range-primary mt-2" disabled={useCustomWidth} />