1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-12-11 15:26:13 +01:00
upscayl/renderer/components/settings-tab/QualityInput.tsx

29 lines
611 B
TypeScript
Raw Normal View History

import React from "react";
type QualityInputProps = {
quality: number;
handleQualityChange: (arg: any) => void;
};
export function QualityInput({
quality,
handleQualityChange,
}: QualityInputProps) {
return (
<div className="flex flex-col gap-2">
<p className="text-sm font-medium uppercase">
Image Compression ({quality}%)
</p>
<input
type="range"
placeholder="Type here"
className="range range-primary w-full max-w-xs"
min={0}
max={100}
value={quality}
onChange={handleQualityChange}
/>
</div>
);
}