Files
NewSzxcn-Email/apps/web/src/components/auth-states.tsx
T
zxyszx 131421a0f1
Docker Release / Check web and api (push) Waiting to run
Docker Release / Resolve release tag (push) Blocked by required conditions
Docker Release / Build and publish all-in-one (push) Blocked by required conditions
Docker Release / Build and publish api (push) Blocked by required conditions
Docker Release / Build and publish web (push) Blocked by required conditions
Docker Release / Build and publish dovecot (push) Blocked by required conditions
Docker Release / Build and publish postfix (push) Blocked by required conditions
Docker Release / Build and publish rspamd (push) Blocked by required conditions
Docker Release / Create GitHub release (push) Blocked by required conditions
release: prepare v1.2.21
2026-08-10 02:55:49 +08:00

18 lines
697 B
TypeScript

import { Button } from "@/components/ui/button"
export function AuthLoading() {
return <main className="grid min-h-screen place-items-center text-muted-foreground">加载中...</main>
}
export function AuthError({ message, onRetry }: { message: string; onRetry: () => void }) {
return (
<main className="grid min-h-screen place-items-center bg-background px-4">
<div className="w-full max-w-sm space-y-4 text-center">
<div className="text-sm font-medium">服务暂时不可用</div>
<div className="text-sm text-muted-foreground">{message}</div>
<Button type="button" variant="outline" onClick={onRetry}>重新连接</Button>
</div>
</main>
)
}