// apps/web/src/components/editor/common/loading-overlay.tsx import { X } from "lucide-react"; import { cn } from "@/lib/utils"; import { useEditorStore } from "@/stores/editor-store"; export function LoadingOverlay() { const loadingState = useEditorStore((s) => s.loadingState); const setLoadingState = useEditorStore((s) => s.setLoadingState); if (!loadingState) return null; return (
{loadingState.operation}
{/* Progress bar */} {loadingState.progress !== null && (