import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter, Link, Switch, Route } from 'react-router-dom';
import { Navbar, Nav, Container } from 'react-bootstrap';
import { UserContext, Login, Logout, OauthCallback, AuthenticationProvider } from './auth.js';
import { Flash } from './flash';
import { ThemeContext, ThemeProvider, ThemeSwitcher } from './theme.js';
import Main from './app';
function LoginNavigation(props) {
if (!props.value.is_logged_in) {
return Login
}
return <>
Logout [{props.value.username}]
>;
}
function Navigation() {
return
{theme => (
Inventory
)}
;
}
function Router() {
return
;
}
function Root() {
return
;
}
ReactDOM.render(
,
document.getElementById('root')
);