import * as Routes from './routes'; import { h } from 'preact'; import ActivityIndicator from './components/ActivityIndicator'; import AsyncRoute from 'preact-async-route'; import AppBar from './components/AppBar'; import Cameras from './routes/Cameras'; import { Router } from 'preact-router'; import Sidebar from './Sidebar'; import Api, { FetchStatus, useConfig } from './api'; import { DarkModeProvider, DrawerProvider } from './context'; export default function App() { const { data, status } = useConfig(); return (
{status !== FetchStatus.LOADED ? (
) : (
)}
); }