import { useEffect, useState } from "react"; import { BrandLogoFrame } from "@/components/brand/brand-logo"; import { cn } from "@/lib/utils"; type FullScreenLoaderProps = { label?: string; detail?: string; className?: string; }; export function FullScreenLoader({ label = "正在恢复工作区", detail = "同步账号、模型和项目数据", className }: FullScreenLoaderProps) { return (
{label}{detail}
); } export function WorkspaceRouteLoader({ label = "正在打开页面" }: { label?: string }) { const [visible, setVisible] = useState(false); useEffect(() => { const timer = window.setTimeout(() => setVisible(true), 140); return () => window.clearTimeout(timer); }, []); return (
} /> {label}
); } function LoadingSignal() { return ; }