// src/App.tsx import { useAuth } from './context/AuthContext'; import { LoginPage } from './components/LoginPage'; import { DashboardPage } from './components/DashboardPage'; import './App.css'; // Puede añadir estilos globales aquí function App() { const { isAuthenticated } = useAuth(); return (
{isAuthenticated ? : }
); } export default App;