2024-09-01 14:01:45 +02:00
|
|
|
import { translationAtom } from "@/atoms/translations-atom";
|
|
|
|
import { useAtomValue } from "jotai";
|
2022-11-11 21:39:28 +01:00
|
|
|
import React from "react";
|
|
|
|
|
2023-08-14 12:55:30 +02:00
|
|
|
function RightPaneInfo({ version, batchMode }) {
|
2024-09-01 14:01:45 +02:00
|
|
|
const t = useAtomValue(translationAtom);
|
|
|
|
|
2023-08-14 12:55:30 +02:00
|
|
|
return (
|
2024-09-01 14:01:45 +02:00
|
|
|
<div className="flex flex-col items-center rounded-btn bg-base-200 p-4">
|
2023-08-26 09:27:15 +02:00
|
|
|
<p className="pb-1 text-lg font-semibold">
|
2024-09-01 14:01:45 +02:00
|
|
|
{batchMode
|
|
|
|
? t("APP.INFOS.RIGHT_PANE_INFO.SELECT_FOLDER")
|
|
|
|
: t("APP.INFOS.RIGHT_PANE_INFO.SELECT_IMAGE")}
|
2022-11-11 21:39:28 +01:00
|
|
|
</p>
|
2023-08-26 09:27:15 +02:00
|
|
|
{batchMode ? (
|
2024-09-01 14:01:45 +02:00
|
|
|
<p className="w-full pb-5 text-center text-base-content/80 md:w-96">
|
|
|
|
{t("APP.INFOS.RIGHT_PANE_INFO.NOTE_SPECIFIC_FORMATS_IN_FOLDER")}
|
2022-11-11 21:39:28 +01:00
|
|
|
</p>
|
2023-08-26 09:27:15 +02:00
|
|
|
) : (
|
2024-09-01 14:01:45 +02:00
|
|
|
<p className="w-full pb-5 text-center text-base-content/80 md:w-96">
|
|
|
|
{t("APP.INFOS.RIGHT_PANE_INFO.SELECT_IMAGES")}
|
2023-08-26 09:27:15 +02:00
|
|
|
</p>
|
2022-11-11 21:39:28 +01:00
|
|
|
)}
|
2024-09-01 14:01:45 +02:00
|
|
|
<p className="badge badge-primary text-sm">
|
|
|
|
{t("APP.INFOS.RIGHT_PANE_INFO.APP_VERSION", { version })}
|
|
|
|
</p>
|
2023-08-26 09:27:15 +02:00
|
|
|
</div>
|
2022-11-11 21:39:28 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default RightPaneInfo;
|