web/settings: move sub navigation into its own component

This commit is contained in:
wukko
2024-09-04 17:50:47 +06:00
parent a18fd72ea0
commit 56008676f5
10 changed files with 363 additions and 344 deletions

15
web/src/lib/subnav.ts Normal file
View File

@@ -0,0 +1,15 @@
import { browser } from "$app/environment";
const defaultSettingsPage = () => {
if (browser) {
if (window.innerWidth <= 750) {
return "/settings";
}
}
return "/settings/appearance";
}
export {
defaultSettingsPage,
}