2024-09-01 17:31:45 +05:30
|
|
|
import { translationAtom } from "@/atoms/translations-atom";
|
|
|
|
import { useAtomValue } from "jotai";
|
2022-11-12 02:09:28 +05:30
|
|
|
import React from "react";
|
|
|
|
|
2024-10-04 14:45:54 +05:30
|
|
|
function InstructionsCard({ version, batchMode }) {
|
2024-09-01 17:31:45 +05:30
|
|
|
const t = useAtomValue(translationAtom);
|
|
|
|
|
2023-08-14 16:25:30 +05:30
|
|
|
return (
|
2024-09-01 17:31:45 +05:30
|
|
|
<div className="flex flex-col items-center rounded-btn bg-base-200 p-4">
|
2023-08-26 12:57:15 +05:30
|
|
|
<p className="pb-1 text-lg font-semibold">
|
2024-09-01 17:31:45 +05:30
|
|
|
{batchMode
|
2024-09-03 13:04:58 +05:30
|
|
|
? t("APP.RIGHT_PANE_INFO.SELECT_FOLDER")
|
|
|
|
: t("APP.RIGHT_PANE_INFO.SELECT_IMAGE")}
|
2022-11-12 02:09:28 +05:30
|
|
|
</p>
|
2023-08-26 12:57:15 +05:30
|
|
|
{batchMode ? (
|
2024-09-01 17:31:45 +05:30
|
|
|
<p className="w-full pb-5 text-center text-base-content/80 md:w-96">
|
2024-09-03 13:04:58 +05:30
|
|
|
{t("APP.RIGHT_PANE_INFO.SELECT_FOLDER_DESCRIPTION")}
|
2022-11-12 02:09:28 +05:30
|
|
|
</p>
|
2023-08-26 12:57:15 +05:30
|
|
|
) : (
|
2024-09-01 17:31:45 +05:30
|
|
|
<p className="w-full pb-5 text-center text-base-content/80 md:w-96">
|
2024-09-03 13:04:58 +05:30
|
|
|
{t("APP.RIGHT_PANE_INFO.SELECT_IMAGES_DESCRIPTION")}
|
2023-08-26 12:57:15 +05:30
|
|
|
</p>
|
2022-11-12 02:09:28 +05:30
|
|
|
)}
|
2024-09-03 13:04:58 +05:30
|
|
|
<p className="badge badge-primary text-sm">Upscayl v{version}</p>
|
2023-08-26 12:57:15 +05:30
|
|
|
</div>
|
2022-11-12 02:09:28 +05:30
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2024-10-04 14:45:54 +05:30
|
|
|
export default InstructionsCard;
|