29 lines
989 B
TypeScript
29 lines
989 B
TypeScript
"use client"
|
|
|
|
import type React from "react"
|
|
import { Bell, User } from "lucide-react"
|
|
import { Button } from "@/components/ui/button"
|
|
import AdminSidebar from "./components/AdminSidebar"
|
|
|
|
export default function AdminLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<div className="flex h-screen bg-gray-100">
|
|
<AdminSidebar />
|
|
<div className="flex-1 flex flex-col overflow-hidden">
|
|
<header className="bg-white border-b h-16 flex items-center justify-between px-6">
|
|
<h1 className="text-xl font-semibold">运营端后台</h1>
|
|
<div className="flex items-center space-x-4">
|
|
<Button variant="ghost" size="icon">
|
|
<Bell className="h-5 w-5" />
|
|
</Button>
|
|
<Button variant="ghost" size="icon">
|
|
<User className="h-5 w-5" />
|
|
</Button>
|
|
</div>
|
|
</header>
|
|
<main className="flex-1 overflow-auto">{children}</main>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|