"use client"; import type React from "react"; import Link from "next/link"; import { LayoutDashboard, Download, Layers, Boxes, Store, Users, Settings, LucideMail, Wand2, } from "lucide-react"; export type AdminNavItem = { label: string; href: string; icon: React.ReactNode; }; type AdminLeftNavigationProps = { collapsed: boolean; onToggleCollapsed: () => void; items?: AdminNavItem[]; // ✅ NEW }; const defaultNavItems: AdminNavItem[] = [ { 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: "Manage Emails", href: "/admin/email/manage", icon: }, { label: "Send an Email", href: "/admin/email/send", icon: }, ]; export default function AdminLeftNavigation({ collapsed, onToggleCollapsed, items = defaultNavItems, // ✅ NEW default }: AdminLeftNavigationProps) { return ( ); }