1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-01-07 20:21:34 +01:00
upscayl/renderer/components/settings-tab/GpuIdInput.tsx

30 lines
807 B
TypeScript
Raw Normal View History

2023-07-22 13:07:53 +02:00
import React from "react";
type GpuIdInputProps = {
gpuId: string;
handleGpuIdChange: (arg: string) => void;
};
export function GpuIdInput({ gpuId, handleGpuIdChange }) {
return (
<div className="flex flex-col gap-2">
<p className="text-sm font-medium">GPU ID</p>
2024-04-24 22:28:03 +02:00
<p className="text-xs text-base-content/80">
Please read the Upscayl Documentation for more information.
</p>
2023-09-09 16:01:58 +02:00
{window.electron.platform === "win" && (
<p className="text-xs text-base-content/80">
2023-09-09 16:43:51 +02:00
Enable performance mode on Windows for better results.
2023-09-09 16:01:58 +02:00
</p>
)}
2023-07-22 13:07:53 +02:00
<input
type="text"
placeholder="Type here"
2024-04-24 22:28:03 +02:00
className="input input-bordered w-full max-w-xs"
2023-07-22 13:07:53 +02:00
value={gpuId}
onChange={handleGpuIdChange}
/>
</div>
);
}