import React from 'react'; import '../../styles/components.css'; const Sidebar = ({ isMobileMenuOpen, onToggleMobileMenu, activeView = 'dashboard', onNavigate }) => { const handleLogout = () => { try { localStorage.setItem('auth', 'false'); } catch (e) {} window.location.reload(); }; const navItems = [ { key: 'dashboard', icon: 'fas fa-tachometer-alt', label: 'Dashboard', badge: null }, { key: 'scheduled', icon: 'fas fa-list', label: 'Solicitudes Programadas', badge: null }, { key: 'create', icon: 'fas fa-plus-circle', label: 'Crear Solicitud', badge: null }, { key: 'history', icon: 'fas fa-history', label: 'Historial', badge: null }, { key: 'settings', icon: 'fas fa-cog', label: 'Configuración', badge: null }, { key: 'help', icon: 'fas fa-question-circle', label: 'Ayuda', badge: null } ]; const handleClick = (e, key) => { e.preventDefault(); onNavigate?.(key); }; return ( <>
> ); }; export default Sidebar;