1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-12-03 11:37:28 +01:00
upscayl/renderer/components/settings-tab/QualityInput.tsx
2023-07-23 14:37:18 +05:30

29 lines
611 B
TypeScript

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>
);
}