2022-08-31 20:55:26 +05:30
|
|
|
import React from "react";
|
2022-09-01 08:34:33 +05:30
|
|
|
import Animated from "../public/loading.svg";
|
|
|
|
import Image from "next/image";
|
2022-08-31 20:55:26 +05:30
|
|
|
|
|
|
|
function ProgressBar(props) {
|
2022-09-11 17:04:36 +05:30
|
|
|
console.log(props.sharpening);
|
2022-08-31 20:55:26 +05:30
|
|
|
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} />
|
2022-09-11 17:04:36 +05:30
|
|
|
<p className="font-bold text-neutral-50">
|
|
|
|
{props.sharpening ? props.sharpeningProgress : props.progress}
|
|
|
|
</p>
|
|
|
|
{props.sharpening ? (
|
|
|
|
<p className="text-sm font-medium text-neutral-200">
|
|
|
|
Sharpening your Image...
|
|
|
|
</p>
|
|
|
|
) : (
|
|
|
|
<p className="text-sm font-medium text-neutral-200">
|
|
|
|
Doing the Upscayl magic...
|
|
|
|
</p>
|
|
|
|
)}
|
2022-08-31 20:55:26 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ProgressBar;
|