diff options
| author | soryu <soryu@soryu.co> | 2025-11-15 18:00:09 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2025-11-15 18:00:09 +0000 |
| commit | 3e7b2beca1136a42700a7e1aebfe4c0fb2861a00 (patch) | |
| tree | 6c896c31820681e360e50a73839fc2284c043dea /frontend/src/App.tsx | |
| download | soryu-3e7b2beca1136a42700a7e1aebfe4c0fb2861a00.tar.gz soryu-3e7b2beca1136a42700a7e1aebfe4c0fb2861a00.zip | |
Initial commit
Diffstat (limited to 'frontend/src/App.tsx')
| -rw-r--r-- | frontend/src/App.tsx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx new file mode 100644 index 0000000..0a0e008 --- /dev/null +++ b/frontend/src/App.tsx @@ -0,0 +1,19 @@ +import React from 'react' +import { useStore } from '@nanostores/react' +import { LandingPage } from './components/LandingPage' +import { VNInterface } from './components/VNInterface' +import { isLoggedInStore, login, logout } from './stores' + +export default function App() { + const isLoggedIn = useStore(isLoggedInStore) + + return ( + <> + {isLoggedIn ? ( + <VNInterface onLogout={logout} /> + ) : ( + <LandingPage onLogin={login} /> + )} + </> + ) +} |
