kizabgd123 commited on
Commit
1753c8e
·
verified ·
1 Parent(s): 985d50c

Upload components/Sidebar.jsx with huggingface_hub

Browse files
Files changed (1) hide show
  1. components/Sidebar.jsx +32 -0
components/Sidebar.jsx ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { useState } from 'react';
2
+ import { LayoutDashboard, FileText, Database, Shield, Zap, Settings, Play } from 'lucide-react';
3
+
4
+ const navItems = [
5
+ { id: 'dashboard', label: 'Dashboard', icon: LayoutDashboard },
6
+ { id: 'parser', label: 'Notebook Parser', icon: FileText },
7
+ { id: 'knowledge', label: 'Knowledge Base', icon: Database },
8
+ { id: 'board', label: 'Board Validator', icon: Shield },
9
+ { id: 'training', label: 'Training & Submit', icon: Play },
10
+ { id: 'settings', label: 'Settings', icon: Settings },
11
+ ];
12
+
13
+ export default function Sidebar({ activePage, onNavigate }) {
14
+ return (
15
+ <aside className="w-64 bg-white shadow-lg rounded-lg p-4 mr-6">
16
+ <nav className="sidebar-nav">
17
+ {navItems.map(({ id, label, icon: Icon }) => (
18
+ <div
19
+ key={id}
20
+ onClick={() => onNavigate(id)}
21
+ className={`nav-item ${activePage === id ? 'active' : ''}`}
22
+ >
23
+ <div className="flex items-center">
24
+ <Icon className="w-5 h-5 mr-3" />
25
+ <span>{label}</span>
26
+ </div>
27
+ </div>
28
+ ))}
29
+ </nav>
30
+ </aside>
31
+ );
32
+ }