mirror of
https://github.com/upscayl/upscayl.git
synced 2025-01-31 04:03:51 +01:00
24 lines
738 B
TypeScript
24 lines
738 B
TypeScript
import React from "react";
|
|
import Animated from "../public/loading.svg";
|
|
import Spinner from "./icons/Spinner";
|
|
|
|
function ProgressBar({ progress, doubleUpscaylCounter }) {
|
|
return (
|
|
<div className="absolute flex h-full w-full flex-col items-center justify-center bg-base-300/50 backdrop-blur-lg">
|
|
<div className="flex flex-col items-center gap-2">
|
|
<Spinner />
|
|
<p className="font-bold">
|
|
{doubleUpscaylCounter > 0
|
|
? `${progress}\nPass ${doubleUpscaylCounter}`
|
|
: `${progress}`}
|
|
</p>
|
|
<p className="rounded-full bg-base-300 px-2 py-1 text-sm font-medium">
|
|
Doing the Upscayl magic...
|
|
</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default ProgressBar;
|