32 lines
835 B
TypeScript
32 lines
835 B
TypeScript
import { Header } from '@/components/Header';
|
|
import { AuthGuard } from '@/components/AuthGuard';
|
|
|
|
export default function AdminLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<div className="min-h-screen bg-background">
|
|
<Header />
|
|
|
|
<main className="container mx-auto py-8 px-4">
|
|
<div className="space-y-8">
|
|
{/* Header */}
|
|
<div className="text-center space-y-4">
|
|
<h1 className="text-4xl font-bold tracking-tight">
|
|
管理面板
|
|
</h1>
|
|
<p className="text-xl text-muted-foreground max-w-2xl mx-auto">
|
|
管理文件、控制可见性、查看统计信息
|
|
</p>
|
|
</div>
|
|
|
|
<AuthGuard>
|
|
{children}
|
|
</AuthGuard>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
);
|
|
} |