summaryrefslogblamecommitdiff
path: root/frontend/src/App.tsx
blob: 9a84b3bb9993170757f99c957e5e914bc47dbfca (plain) (tree)
1
2
3
4
5



                                                      
                                                  








                                              
                       



        
import React from 'react'
import { useStore } from '@nanostores/react'
import { LandingPage } from './components/LandingPage'
import { VNInterface } from './components/VNInterface'
import { isLoggedInStore, logout } from './stores'

export default function App() {
  const isLoggedIn = useStore(isLoggedInStore)

  return (
    <>
      {isLoggedIn ? (
        <VNInterface onLogout={logout} />
      ) : (
        <LandingPage />
      )}
    </>
  )
}