import { ArrowRight, LogOut, ShieldCheck } from "lucide-react"; import { useState } from "react"; import { Link, NavLink, useLocation, useNavigate } from "react-router"; import { authClient, isAdminSession, useSession } from "@/client/lib/auth-client"; import { signInPath } from "@/client/lib/navigation"; import { Skeleton } from "@/client/components/ui/skeleton"; const navLinkClass = ({ isActive }: { isActive: boolean }): string => [ // Stay reachable on small screens by letting the nav row scroll // horizontally instead of disappearing behind a hamburger menu — // tessera's nav is short enough to stay visible. "shrink-0 rounded-lg px-3 py-1.5 text-sm font-medium transition-colors", isActive ? "bg-accent-500/10 text-accent-400" : "text-zinc-400 hover:bg-zinc-800 hover:text-zinc-200", ].join(" "); const HeaderBrand = ({ href }: { href: string }) => ( tessera An identification mark. ); const SignInPill = () => { const { pathname, search } = useLocation(); if (pathname === "/sign-in") return null; const here = `${pathname}${search}`; return ( Sign in