2023-07-22 13:07:53 +02:00
|
|
|
type ImageScaleSelectProps = {
|
|
|
|
scale: "4" | "2" | "3";
|
|
|
|
setScale: (arg: "4" | "2" | "3") => void;
|
|
|
|
};
|
|
|
|
|
|
|
|
export function ImageScaleSelect({ scale, setScale }: ImageScaleSelectProps) {
|
|
|
|
return (
|
2024-04-09 20:21:54 +02:00
|
|
|
<div>
|
2023-07-22 13:07:53 +02:00
|
|
|
<div className="flex flex-row gap-1">
|
2024-04-09 20:21:54 +02:00
|
|
|
<p className="text-sm font-medium">IMAGE SCALE ({scale}X)</p>
|
2023-11-23 06:39:46 +01:00
|
|
|
{/*
|
2023-07-23 11:07:18 +02:00
|
|
|
<p className="badge-primary badge text-[10px] font-medium">
|
|
|
|
EXPERIMENTAL
|
2023-11-23 06:39:46 +01:00
|
|
|
</p> */}
|
2023-07-22 13:07:53 +02:00
|
|
|
</div>
|
|
|
|
<input
|
|
|
|
type="range"
|
2023-07-23 08:32:22 +02:00
|
|
|
min="1"
|
2024-04-09 20:21:54 +02:00
|
|
|
max="16"
|
2023-07-22 13:07:53 +02:00
|
|
|
value={scale}
|
|
|
|
onChange={(e: any) => {
|
|
|
|
setScale(e.target.value.toString());
|
|
|
|
}}
|
|
|
|
step="1"
|
|
|
|
className="range range-primary mt-2"
|
|
|
|
/>
|
|
|
|
<div className="flex w-full justify-between px-2 text-xs font-semibold text-base-content">
|
2024-04-09 20:21:54 +02:00
|
|
|
<span>1</span>
|
|
|
|
<span>4</span>
|
|
|
|
<span>8</span>
|
|
|
|
<span>12</span>
|
|
|
|
<span>16</span>
|
2023-07-22 13:07:53 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|