import AdminSidebar from './AdminSidebar' import { useAuth } from '../context/AuthContext' export default function AdminLayout({ children }) { const { user } = useAuth() if (!user || user.role !== 'admin') { return (
You do not have permission to view this page