Files
frontend/apps/st/src/shared/ui/global-progress-overlay.tsx
T
2026-08-20 11:48:18 +09:00

24 lines
843 B
TypeScript

"use client";
import { useGlobalProgressStore } from "@/shared/lib";
import { Progress } from "@common/components";
export const GlobalProgressOverlay = () => {
const visible = useGlobalProgressStore((state) => state.visible);
const label = useGlobalProgressStore((state) => state.label);
const progress = useGlobalProgressStore((state) => state.progress);
if (!visible) return null;
return (
<div className="fixed inset-0 z-[999] bg-black/35 [data-theme='black']:bg-black/55 backdrop-blur-[1px] rounded-lg p-10 flex justify-center items-center">
<div className="w-[34rem] rounded-md border border-border bg-background p-6 shadow-md">
<p className="mb-3 text-center text-[1.3rem] text-foreground">
{label} {progress}%
</p>
<Progress value={progress} />
</div>
</div>
);
};