'use client'; import React from 'react'; import AdminSidebar from '../../components/admin/AdminSidebar'; import '../../styles/admin.css'; // Note: metadata export removed because this is now a client component // Add metadata to individual pages instead export default function AdminLayout({ children, }: { children: React.ReactNode; }) { // For a real app, add auth check here to prevent unauthorized access // const { data: session, status } = useSession() // if (status === "loading") return // if (status === "unauthenticated") redirect('/admin/login') return (
{/* Sidebar */}
{/* Mobile sidebar (hidden by default) */}
{/* We'd implement a mobile menu here */}
{/* Main content */}
{/* Header */}

Admin Portal

{/* User menu */}
Admin User
{/* Page content */}
{children}
); }