use user from session

This commit is contained in:
john 2025-05-20 10:06:18 +02:00
parent 5f47162a50
commit 700eaf3eb2
16 changed files with 148 additions and 107 deletions

View file

@ -1,11 +1,11 @@
import { PropsWithChildren } from 'react'
import { useUser } from '../app/user/userStore.ts'
import { useUser } from '../app/user/user.ts'
import NavButton from './buttons/NavButton.tsx'
type NavBarProps = unknown
export default function NavBar({ children }: PropsWithChildren<NavBarProps>) {
const { user } = useUser()
const user = useUser()
return (
<nav className={`w-full flex flex-row justify-end gap-4 px-4 md:px-8 py-3`}>
{children}