SERIOUS messing around with the navbar

This commit is contained in:
Eclypsed
2024-01-28 02:41:13 -05:00
parent bee4c903ec
commit 5bd5b603b0
7 changed files with 200 additions and 146 deletions

View File

@@ -1,5 +1,12 @@
import type { LayoutServerLoad } from './$types'
export const load: LayoutServerLoad = ({ locals }) => {
return { user: locals.user }
export const load: LayoutServerLoad = ({ url, locals }) => {
const { pathname, search } = url
return {
url: {
pathname,
search,
},
user: locals.user,
}
}