import { h, render } from 'preact' import { Route, Router, Switch } from 'wouter-preact' import { useHashLocation, extractView, } from '~/src/utils/utils.routing' import { useThemeEngine, } from '~/src/themes/themes' import HomeView from '~/src/views/HomeView/HomeView' import GamesView from '~/src/views/GamesView/GamesView' import PlayerView from '~/src/views/PlayerView/PlayerView' import NotFoundView from '~/src/views/NotFoundView' import '@fontsource/open-sans' import '~/src/style/base.css' function App () { const themeEngine = useThemeEngine() const [location] = useHashLocation() const playerView = (themeEngine, singleWindow) => function view (params) { return () } return (
{ playerView(themeEngine, false) } { playerView(themeEngine, false) } { playerView(themeEngine, true) } { playerView(themeEngine, true) }
) } render(, document.getElementById('root'))