import { h } from 'preact'; import ActivityIndicator from './components/ActivityIndicator'; import AppBar from './components/AppBar'; import Camera from './Camera'; import CameraMap from './CameraMap'; import Cameras from './Cameras'; import Debug from './Debug'; import Event from './Event'; import Events from './Events'; import { Router } from 'preact-router'; import Sidebar from './Sidebar'; import StyleGuide from './StyleGuide'; import Api, { FetchStatus, useConfig } from './api'; import { DarkModeProvider, SidebarProvider } from './context'; export default function App() { const { data, status } = useConfig(); return (
{status !== FetchStatus.LOADED ? (
) : (
{import.meta.env.SNOWPACK_MODE !== 'development' ? : null}
)}
); }