website-01/app/admin/loading.tsx
2026-06-22 14:43:46 +08:00

17 lines
568 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { Loader2 } from 'lucide-react';
/**
* 后台路由级加载态Next.js App Router Suspense fallback
* 在页面 chunk 加载或服务端渲染期间,先展示居中 spinner避免白屏/闪烁。
*/
export default function AdminLoading() {
return (
<div className="flex min-h-[50vh] items-center justify-center">
<div className="flex flex-col items-center gap-3">
<Loader2 className="h-8 w-8 animate-spin text-brand-500" />
<span className="text-sm text-slate-400"></span>
</div>
</div>
);
}