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 { DarkModeProvider } from './context'; 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'; export default function App() { const { data, status } = useConfig(); return (
{status !== FetchStatus.LOADED ? (
) : (
{import.meta.env.SNOWPACK_MODE !== 'development' ? : null}
)}
); }