mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-24 07:30:19 +01:00
22 lines
705 B
TypeScript
22 lines
705 B
TypeScript
import React from "react";
|
|
import Animated from "../public/loading.svg";
|
|
import Image from "next/image";
|
|
|
|
function ProgressBar({ progress, doubleUpscaylCounter }) {
|
|
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" />
|
|
<p className="font-bold">
|
|
{doubleUpscaylCounter > 0
|
|
? `${progress}\nPass ${doubleUpscaylCounter}`
|
|
: `${progress}`}
|
|
</p>
|
|
<p className="text-sm font-medium">Doing the Upscayl magic...</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default ProgressBar;
|