Download src/App.js from UnDaoDu/aimindmap: direct link, hf CLI and curl.
- Browser
- Download file 977 Bytes
-
https://huggingface.co/spaces/UnDaoDu/aimindmap/resolve/main/src/App.js
- Command line
-
hf download hf://spaces/UnDaoDu/aimindmap/src/App.js
-
curl -L -o App.js https://huggingface.co/spaces/UnDaoDu/aimindmap/resolve/main/src/App.js
977 Bytes
| import React from 'react'; | |
| import { useAppState } from './hooks/useAppState'; | |
| import { LoadingScreen } from './components/LoadingScreen'; | |
| import { LoginScreen } from './components/LoginScreen'; | |
| import { MainLayout } from './components/MainLayout'; | |
| import { UserProfile } from './components/UserProfile'; | |
| import { MindmappingTab } from './components/MindmappingTab'; | |
| import './styles/App.css'; | |
| export default function App() { | |
| const appState = useAppState(); | |
| const { loading, user } = appState; | |
| if (loading) { | |
| return <LoadingScreen />; | |
| } | |
| if (!user) { | |
| return <LoginScreen />; | |
| } | |
| return ( | |
| <div className="app"> | |
| <header className="app-header"> | |
| <div className="title-section"> | |
| <div className="title">Foundups AI Mind Map</div> | |
| <div className="version">version 0.026</div> | |
| </div> | |
| <UserProfile /> | |
| </header> | |
| <main className="app-main"> | |
| <MindmappingTab /> | |
| </main> | |
| </div> | |
| ); | |
| } | |