import { NavLink, Navigate, Route, Routes } from 'react-router-dom' import AnalyzePage from './pages/AnalyzePage.jsx' import AnalyticsPage from './pages/AnalyticsPage.jsx' import ReviewPage from './pages/ReviewPage.jsx' import SearchPage from './pages/SearchPage.jsx' import { useTheme } from './context/ThemeContext.jsx' import { ShieldAlert, Activity, LayoutList, Search, Sun, Moon } from 'lucide-react' const TABS = [ { to: '/analyze', label: 'Analyze a photo', icon: ShieldAlert }, { to: '/analytics', label: 'Analytics', icon: Activity }, { to: '/review', label: 'Review queue', icon: LayoutList }, { to: '/search', label: 'Search records', icon: Search }, ] export default function App() { const { theme, toggleTheme } = useTheme() return ( <> AVIS Intelligence Automated road safety analysis powered by Vision AI. Detect violations, extract plates, and verify evidence in seconds. {theme === 'dark' ? : } {TABS.map((t) => ( (isActive ? 'active' : '')}> {t.label} ))} } /> } /> } /> } /> } /> } /> > ) }
Automated road safety analysis powered by Vision AI. Detect violations, extract plates, and verify evidence in seconds.