kizabgd123 commited on
Commit
6da3e82
·
verified ·
1 Parent(s): 8d5b882

Upload pages/index.js with huggingface_hub

Browse files
Files changed (1) hide show
  1. pages/index.js +39 -0
pages/index.js ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { useState } from 'react';
2
+ import Header from '../components/Header';
3
+ import Sidebar from '../components/Sidebar';
4
+ import Dashboard from '../components/Dashboard';
5
+ import NotebookParser from '../components/NotebookParser';
6
+ import KnowledgeBase from '../components/KnowledgeBase';
7
+ import BoardValidator from '../components/BoardValidator';
8
+ import TrainingMonitor from '../components/TrainingMonitor';
9
+ import Settings from '../components/Settings';
10
+
11
+ const pages = {
12
+ dashboard: Dashboard,
13
+ parser: NotebookParser,
14
+ knowledge: KnowledgeBase,
15
+ board: BoardValidator,
16
+ training: TrainingMonitor,
17
+ settings: Settings,
18
+ };
19
+
20
+ export default function Home() {
21
+ const [activePage, setActivePage] = useState('dashboard');
22
+ const ActiveComponent = pages[activePage];
23
+
24
+ return (
25
+ <div className="min-h-screen bg-gray-50">
26
+ <Header />
27
+
28
+ <div className="container mx-auto px-4 py-6">
29
+ <div className="flex">
30
+ <Sidebar activePage={activePage} onNavigate={setActivePage} />
31
+
32
+ <main className="flex-1">
33
+ <ActiveComponent />
34
+ </main>
35
+ </div>
36
+ </div>
37
+ </div>
38
+ );
39
+ }