Download src/App.jsx from Cripple-Lee/Personal-Assistant-Client: direct link, hf CLI and curl.
- Browser
- Download file 452 Bytes
-
https://huggingface.co/spaces/Cripple-Lee/Personal-Assistant-Client/resolve/main/src/App.jsx
- Command line
-
hf download hf://spaces/Cripple-Lee/Personal-Assistant-Client/src/App.jsx
-
curl -L -o App.jsx https://huggingface.co/spaces/Cripple-Lee/Personal-Assistant-Client/resolve/main/src/App.jsx
452 Bytes
| import AuthProvider from './context/AuthContextProvider.jsx' | |
| import { useAuth } from './context/useAuth.js' | |
| import Login from './components/Login/Login.jsx' | |
| import Chat from './components/Chat/Chat.jsx' | |
| import './App.css' | |
| function App() { | |
| return ( | |
| <AuthProvider> | |
| <AppContent /> | |
| </AuthProvider> | |
| ) | |
| } | |
| function AppContent() { | |
| const { isAuthenticated } = useAuth() | |
| return isAuthenticated ? <Chat /> : <Login /> | |
| } | |
| export default App | |