"use client"; import React from "react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { LayoutDashboard, Package, Users, UserSquare2, ShoppingCart, CheckSquare, Network, MessageSquare, Map as MapIcon, FileText, LogOut } from "lucide-react"; import { motion } from "framer-motion"; import { auth } from "@/lib/firebase"; const menuItems = [ { icon: LayoutDashboard, label: "Dashboard", href: "/" }, { icon: Package, label: "Inventario", href: "/inventory" }, { icon: ShoppingCart, label: "Ventas", href: "/sales" }, { icon: Users, label: "Clientes", href: "/clients" }, { icon: UserSquare2, label: "Personal / RRHH", href: "/hr" }, { icon: CheckSquare, label: "Tareas", href: "/tasks" }, { icon: FileText, label: "Facturación", href: "/billing" }, { icon: Network, label: "Organigrama", href: "/org-chart" }, { icon: MessageSquare, label: "Intranet", href: "/intranet" }, { icon: MapIcon, label: "Mapa Mental", href: "/mind-map" }, ]; export default function Sidebar() { const pathname = usePathname(); if (pathname === "/login") return null; return (
E
Premium ERP
); }