1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-01-19 01:24:09 +01:00

34 lines
956 B
TypeScript
Raw Normal View History

import { translationAtom } from "@/atoms/translations-atom";
import { useAtomValue } from "jotai";
2023-07-22 16:37:53 +05:30
import React from "react";
type GpuIdInputProps = {
gpuId: string;
handleGpuIdChange: (arg: string) => void;
};
export function InputGpuId({ gpuId, handleGpuIdChange }) {
const t = useAtomValue(translationAtom);
2023-07-22 16:37:53 +05:30
return (
<div className="flex flex-col gap-2">
<p className="text-sm font-medium">{t("SETTINGS.GPU_ID_INPUT.TITLE")}</p>
2024-04-25 01:58:03 +05:30
<p className="text-xs text-base-content/80">
{t("SETTINGS.GPU_ID_INPUT.DESCRIPTION")}
2024-04-25 01:58:03 +05:30
</p>
2023-09-09 19:31:58 +05:30
{window.electron.platform === "win" && (
<p className="text-xs text-base-content/80">
{t("SETTINGS.GPU_ID_INPUT.ADDITIONAL_DESCRIPTION")}
2023-09-09 19:31:58 +05:30
</p>
)}
2023-07-22 16:37:53 +05:30
<input
type="text"
placeholder="Type here"
2024-04-25 01:58:03 +05:30
className="input input-bordered w-full max-w-xs"
2023-07-22 16:37:53 +05:30
value={gpuId}
onChange={handleGpuIdChange}
/>
</div>
);
}