import { AnimatePresence, motion } from 'framer-motion'; import Navbar from './components/Navbar'; import LandingPage from './components/LandingPage'; import AnalysisProgress from './components/AnalysisProgress'; import ForensicDashboard from './components/ForensicDashboard'; import { useAnalysis } from './hooks/useAnalysis'; import { useTheme } from './hooks/useTheme'; import styles from './App.module.css'; export default function App() { const { phase, currentStage, progress, result, file, previewUrl, error, analyze, reset } = useAnalysis(); const { theme, toggleTheme } = useTheme(); return (
{phase === 'idle' && ( )} {(phase === 'uploading' || phase === 'analyzing') && ( )} {phase === 'complete' && result && ( )}
); }