1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-12-18 10:26:04 +01:00
upscayl/renderer/components/RightPaneInfo.tsx

26 lines
703 B
TypeScript
Raw Normal View History

2022-11-11 21:39:28 +01:00
import React from "react";
2022-11-25 08:30:03 +01:00
function RightPaneInfo({ version, batchMode, isVideo }) {
return isVideo ? (
<>
<p className="p-5 pb-1 text-lg font-semibold">Select Video to Upscayl</p>
2022-11-25 08:30:03 +01:00
<p className="text-sm">Upscayl v{version}</p>
</>
) : (
2022-11-11 21:39:28 +01:00
<>
2022-11-11 22:32:24 +01:00
<p className="p-5 pb-1 text-lg font-semibold">
Select {batchMode ? "a Folder" : "an Image"} to Upscayl
2022-11-11 21:39:28 +01:00
</p>
{batchMode && (
2022-11-11 22:32:24 +01:00
<p className="w-full pb-5 text-center md:w-96">
2022-11-11 21:39:28 +01:00
Make sure that the folder doesn't contain anything except PNG, JPG,
JPEG & WEBP images.
</p>
)}
2022-11-11 22:32:24 +01:00
<p className="text-sm">Upscayl v{version}</p>
2022-11-11 21:39:28 +01:00
</>
);
}
export default RightPaneInfo;