"use client"; import type React from "react"; import { useState } from "react"; import AdminLeftNavigation from "@/components/AdminLeftNavigation"; import { LayoutDashboard, Download, Layers, Boxes, Store, Users, Settings, LucideMail, Wand2, } from "lucide-react"; const navItems = [ { label: "Dashboard", href: "/admin", icon: , }, { label: "Imports", href: "/admin/import-status", icon: , }, { label: "Mappings", href: "/admin/mapping", icon: , }, { label: "Products", href: "/admin/products", icon: , }, { label: "Merchants", href: "/admin/merchants", icon: , }, { label: "Platforms", href: "/admin/platforms", icon: , }, { label: "Enrichment", href: "/admin/enrichment", icon: , }, { label: "Users", href: "/admin/users", icon: , }, { label: "Settings", href: "/admin/settings", icon: , }, { label: "List Emails", href: "/admin/email", icon: , }, { label: "Send a Email", href: "/admin/email/send", icon: , }, ]; // ... existing code ... // ADMIN CHECK FOR LOGIN // const { user, loading } = useAuth(); // if (!loading && user?.role !== "ADMIN") { // redirect("/"); // or /login // } export default function AdminLayout({ children, }: { children: React.ReactNode; }) { const [collapsed, setCollapsed] = useState(false); return (
setCollapsed((v) => !v)} /> {/* Main column */}
{/* Top bar */}

Admin

Battl Builders Control Panel

Internal • v0.1
ADMIN
{/* Content */}
{children}
); }