"use client";
import type React from "react";
import { useState } from "react";
import {
LayoutDashboard,
Download,
Layers,
Boxes,
Store,
Users,
Settings,
} 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 (TO DO)",
href: "/admin/products",
icon: ,
},
{
label: "Merchants",
href: "/admin/merchants",
icon: ,
},
{
label: "Users (TO DO)",
href: "/admin/users",
icon: ,
},
{
label: "Settings (TO DO)",
href: "/admin/settings",
icon: ,
},
];
// 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 (
{/* Sidebar */}
{/* Main column */}
{/* Top bar */}
{/* Content */}
{children}
);
}