Spaces:
Paused
Paused
Download src/App.jsx from dimensionalpulsar/caja: direct link, hf CLI and curl.
- Browser
- Download file 697 Bytes
-
https://huggingface.co/spaces/dimensionalpulsar/caja/resolve/main/src/App.jsx
- Command line
-
hf download hf://spaces/dimensionalpulsar/caja/src/App.jsx
-
curl -L -o App.jsx https://huggingface.co/spaces/dimensionalpulsar/caja/resolve/main/src/App.jsx
697 Bytes
| import React from 'react'; | |
| import { AuthProvider, useAuth } from './context/AuthContext'; | |
| import Login from './components/Login'; | |
| import Header from './components/Header'; | |
| import Dashboard from './components/Dashboard'; | |
| import LogoutScreen from './components/LogoutScreen'; | |
| function MainContent() { | |
| const { user, isLoggingOut } = useAuth(); | |
| if (isLoggingOut) { | |
| return <LogoutScreen user={user} />; | |
| } | |
| if (!user) { | |
| return <Login />; | |
| } | |
| return ( | |
| <div style={{ minHeight: '100vh', background: '#f4f6f9' }}> | |
| <Header /> | |
| <Dashboard /> | |
| </div> | |
| ); | |
| } | |
| export default function App() { | |
| return ( | |
| <AuthProvider> | |
| <MainContent /> | |
| </AuthProvider> | |
| ); | |
| } | |