// src/App.jsx import React, { useState } from 'react'; import { AuthProvider, useAuth } from './contexts/AuthContext'; import Login from './pages/Login'; import Signup from './pages/Signup'; import MainApp from './MainApp'; import './styles/global.css'; const AppContent = () => { const { isAuthenticated, loading } = useAuth(); const [showSignup, setShowSignup] = useState(false); if (loading) { return (

Loading...

); } if (!isAuthenticated) { return showSignup ? ( setShowSignup(false)} /> ) : ( setShowSignup(true)} /> ); } return ; }; function App() { return ( ); } export default App;