File size: 1,121 Bytes
7b4f5dd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* ═══════════════════════════════════════════════════════════════
   App.jsx β€” Root component with view routing
   ═══════════════════════════════════════════════════════════════ */

import { ScanProvider, useScan, VIEWS } from './context/ScanContext';
import LandingPage from './components/LandingPage';
import AnalysisView from './components/AnalysisView';
import ReportView from './components/ReportView';

function AppContent() {
  const { view } = useScan();

  return (
    <>
      {/* Subtle scanline overlay for cyberpunk feel */}
      <div className="scanline-overlay" />

      {view === VIEWS.LANDING && <LandingPage />}
      {view === VIEWS.ANALYSIS && <AnalysisView />}
      {view === VIEWS.REPORT && <ReportView />}
    </>
  );
}

function App() {
  return (
    <ScanProvider>
      <AppContent />
    </ScanProvider>
  );
}

export default App;