// --------------------------------------------------------------------------- // Folder: components/app-shell // File: TopNav.jsx // Relative Path: components/app-shell/TopNav.jsx // --------------------------------------------------------------------------- import React from "react"; import Link from "next/link"; import { Button } from "@/components/ui/button"; import UserStatus from "@/components/app-shell/UserStatus"; import LogoutButton from "@/components/auth/LogoutButton"; /** * TopNav * * RHL-020: * - UserStatus now displays real session info (via AuthContext). * - Logout button is now functional (calls apiClient.logout + redirects to /login). * * Notes: * - Theme toggle is still a placeholder in this ticket. * - We keep this component server-renderable for stability and SSR tests. * LogoutButton is a client component, but it does not require Next router hooks. */ export default function TopNav() { return (
RHL Lieferscheine App shell scaffold
); }