import { LogIn } from "lucide-react" import { type JSX } from "react" import { Link } from "react-router-dom" import { useLightAuth } from "@/auth/context" import { Button } from "@/components/ui/button" /** * Header session control (Phase 8). Anonymous readers get a "Sign in" button * (public Google lane); signed-in readers see who they are and a sign-out, plus * an Admin link when the session is privileged. */ export function LoginButton(): JSX.Element { const { isAuthenticated, isAdmin, nickname, login, logout } = useLightAuth() if (!isAuthenticated) { return ( ) } return (