import { Route, Routes, useNavigate } from '@solidjs/router' import { Show, onMount } from 'solid-js' import { Header } from '~/components/Header' import { Config } from '~/pages/Config' import { Connections } from '~/pages/Connections' import { Logs } from '~/pages/Logs' import { Overview } from '~/pages/Overview' import { Proxies } from '~/pages/Proxies' import { Rules } from '~/pages/Rules' import { Setup } from '~/pages/Setup' import { curTheme, selectedEndpoint } from '~/signals' export const App = () => { const navigate = useNavigate() onMount(() => { if (!selectedEndpoint()) { navigate('/setup') } }) return (