18 lines
892 B
TypeScript
18 lines
892 B
TypeScript
import { Droplet } from "lucide-react";
|
|
import { StartupScreen } from "@/shared/ui/startup-screen";
|
|
|
|
export function AuthStartupScreen({ error }: { error?: boolean }) {
|
|
return (
|
|
<StartupScreen
|
|
brand={{ name: "TJWater", description: "智慧水务平台", icon: <Droplet strokeWidth={1.5} /> }}
|
|
title={error ? "统一身份认证连接失败" : "正在连接统一身份认证"}
|
|
description={error ? "连接恢复后,可以重新尝试登录。" : "正在确认登录状态,完成后自动继续。"}
|
|
progressLabel="身份认证进度"
|
|
steps={[{ id: "identity", label: "检查登录状态", detail: "连接认证服务,确认登录状态", state: "loading" }]}
|
|
error={error ? "暂时无法连接登录服务,请检查网络连接后重试。" : null}
|
|
retryLabel="重新连接"
|
|
onRetry={() => window.location.reload()}
|
|
/>
|
|
);
|
|
}
|