blob: 0a0e0082f74ff59dca73a211ac3701ad929d1508 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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} />
)}
</>
)
}
|