1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-02-21 21:19:31 +01:00
upscayl/renderer/components/main-content/instructions-card.tsx

31 lines
1.0 KiB
TypeScript
Raw Normal View History

import { translationAtom } from "@/atoms/translations-atom";
import { useAtomValue } from "jotai";
2022-11-12 02:09:28 +05:30
import React from "react";
function InstructionsCard({ version, batchMode }) {
const t = useAtomValue(translationAtom);
2023-08-14 16:25:30 +05:30
return (
2024-11-25 07:30:28 +05:30
<div className="flex flex-col items-center gap-4 rounded-btn bg-base-200 p-4">
<p className="text-lg font-semibold">
{batchMode
? 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-11-25 07:30:28 +05:30
<p className="w-full text-center text-base-content/80 md:w-96">
{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-11-25 07:30:28 +05:30
<div className="flex flex-col gap-1 text-center text-sm text-base-content/70">
<p>{t("APP.RIGHT_PANE_INFO.SELECT_IMAGES_DESCRIPTION")}</p>
<p>{t("APP.RIGHT_PANE_INFO.PASTE_IMAGE_DESCRIPTION")}</p>
</div>
2022-11-12 02:09:28 +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
);
}
export default InstructionsCard;