import { h } from 'preact'; import ActivityIndicator from './components/ActivityIndicator'; 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 Api, { FetchStatus, useConfig } from './api'; export default function App() { const { data, status } = useConfig(); return status !== FetchStatus.LOADED ? (
) : (
); }