17 lines
431 B
TypeScript
17 lines
431 B
TypeScript
// 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 (
|
|
<div className="App">
|
|
{isAuthenticated ? <DashboardPage /> : <LoginPage />}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default App; |