1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-28 01:10:52 +01:00
upscayl/renderer/components/ProgressBar.tsx

22 lines
705 B
TypeScript
Raw Normal View History

2022-11-11 21:39:28 +01:00
import React from "react";
import Animated from "../public/loading.svg";
import Image from "next/image";
2022-12-02 15:21:42 +01:00
function ProgressBar({ progress, doubleUpscaylCounter }) {
2022-11-11 21:39:28 +01:00
return (
<div className="absolute flex h-full w-full flex-col items-center justify-center bg-black/50 backdrop-blur-lg">
<div className="flex flex-col items-center gap-2">
<Image src={Animated} alt="Progress Bar" />
2022-12-02 15:21:42 +01:00
<p className="font-bold">
{doubleUpscaylCounter > 0
? `${progress}\nPass ${doubleUpscaylCounter}`
: `${progress}`}
2022-11-11 21:39:28 +01:00
</p>
2022-12-02 15:21:42 +01:00
<p className="text-sm font-medium">Doing the Upscayl magic...</p>
2022-11-11 21:39:28 +01:00
</div>
</div>
);
}
export default ProgressBar;