1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-12-04 03:57:17 +01:00
upscayl/renderer/components/settings-tab/QualityInput.tsx

29 lines
611 B
TypeScript
Raw Permalink 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>
);
}