diff --git a/src/components/Layout/Sidebar.js b/src/components/Layout/Sidebar.js
index d9f46c7..475cb4b 100644
--- a/src/components/Layout/Sidebar.js
+++ b/src/components/Layout/Sidebar.js
@@ -1,16 +1,21 @@
import React from 'react';
import '../../styles/components.css';
-const Sidebar = ({ isMobileMenuOpen, onToggleMobileMenu }) => {
+const Sidebar = ({ isMobileMenuOpen, onToggleMobileMenu, activeView = 'dashboard', onNavigate }) => {
const navItems = [
- { icon: 'fas fa-tachometer-alt', label: 'Dashboard', active: true, badge: null },
- { icon: 'fas fa-list', label: 'Solicitudes Programadas', active: false, badge: '12' },
- { icon: 'fas fa-plus-circle', label: 'Crear Solicitud', active: false, badge: null },
- { icon: 'fas fa-history', label: 'Historial', active: false, badge: null },
- { icon: 'fas fa-cog', label: 'Configuración', active: false, badge: null },
- { icon: 'fas fa-question-circle', label: 'Ayuda', active: false, badge: null }
+ { 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 (
<>