//App.jsx import React, { useState } from 'react'; import './App.css'; import VerificationPage from './VerificationPage.jsx'; import ManagementPage from './ManagementPage.jsx'; import EmotionVerificationPage from './EmotionVerificationPage.jsx'; import { ThemeProvider } from './ThemeContext.jsx'; import ThemeToggle from './ThemeToggle.jsx'; const App = () => { const [currentPage, setCurrentPage] = useState('verify'); const [verification, setVerification] = useState(null); const handleVerified = (verificationResult) => { setVerification(verificationResult); setCurrentPage('manage'); }; const handleBackToVerify = () => { setCurrentPage('verify'); setVerification(null); }; const openEmotionPage = () => { setCurrentPage('emotion'); }; const backToManage = () => { setCurrentPage('manage'); }; return (
{currentPage === 'verify' && ( )} {currentPage === 'manage' && ( )} {currentPage === 'emotion' && ( )}
); }; export default App;