import { useState, useEffect } from 'react' import './index.css' // Icons import { IconLive, IconTarget, IconChart, IconTrophy, IconCrown, IconVs, IconRefresh, IconBarChart } from './icons' // Pages import LiveGames from './pages/LiveGames' import Predictions from './pages/Predictions' import Accuracy from './pages/Accuracy' import MvpRace from './pages/MvpRace' import Championship from './pages/Championship' import HeadToHead from './pages/HeadToHead' import Analytics from './pages/Analytics' // Chevron icon for collapse toggle function IconChevron({ className = '', direction = 'left' }) { return ( {direction === 'left' ? ( ) : ( )} ) } function App() { const [activePage, setActivePage] = useState('live') const [isRefreshing, setIsRefreshing] = useState(false) const [sidebarCollapsed, setSidebarCollapsed] = useState(false) const [sidebarHovered, setSidebarHovered] = useState(false) const handleRefresh = () => { setIsRefreshing(true) window.location.reload() } const navSections = [ { title: 'Games', items: [ { id: 'live', name: 'Live Games', icon: IconLive }, { id: 'predictions', name: 'Predictions', icon: IconTarget }, ] }, { title: 'Analysis', items: [ { id: 'h2h', name: 'Head to Head', icon: IconVs }, { id: 'analytics', name: 'Analytics', icon: IconBarChart }, { id: 'accuracy', name: 'Model Accuracy', icon: IconChart }, ] }, { title: 'Rankings', items: [ { id: 'mvp', name: 'MVP Race', icon: IconTrophy }, { id: 'championship', name: 'Championship', icon: IconCrown }, ] } ] const renderPage = () => { switch (activePage) { case 'live': return case 'predictions': return case 'accuracy': return case 'analytics': return case 'mvp': return case 'championship': return case 'h2h': return default: return } } // Determine if sidebar should be expanded (not collapsed OR being hovered) const isExpanded = !sidebarCollapsed || sidebarHovered return (
{/* Sidebar */} {/* Main Content */}
{renderPage()}
) } export default App