import React from 'react' import { Routes, Route, Navigate, Link } from 'react-router-dom' import { BookOpen, CheckSquare, LayoutDashboard, Trophy, Settings, LogOut } from 'lucide-react' import { useApp } from './store/AppContext' import Login from './pages/Login' import Dashboard from './pages/Dashboard' import Admin from './pages/Admin' import Leren from './pages/Leren' import Testen from './pages/Testen' // Placeholder components for routing structure const Leaderboard = () =>

Leaderboard

See who is on top!

// Protected Route Wrapper const ProtectedRoute = ({ children, requireAdmin }) => { const { state, logout } = useApp() if (state.isLoading) return
Loading...
if (!state.currentUser) { return } if (requireAdmin && state.currentUser.role !== 'admin') { return } return (
{/* Top Navigation Bar */} {/* Mobile Bottom Navigation */}
{children}
) } function App() { const { state } = useApp() if (state.isLoading) return
Loading application...
return ( } /> } /> } /> } /> } /> } /> ) } export default App